New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

how to use SSL on shoutcast ports?

Started by Gianni Marinho, March 03, 2022, 07:13:44 PM

Previous topic - Next topic

Gianni Marinho

how to use SSL on shoutcast ports?

I access my server normally through https://servidor.giannimarinho.com:2031 but I can't access the shoutcast ports with my hostname and SSL. example: https://servidor.giannimarinho.com:15000

support told me that i have to release port 15000 in the CWP firewall but it doesn't work even with the firewall turned off.

how do i add a port range in the CWP firewall?
example: ports 15000 to 16000
can anyone help me?

rcschaff

#1
Use Nginx as a proxy:

server {

    listen <sh ip>:<a port for ssl> ssl;
    server_name <radio.yoururl>
    ssl_certificate <certificate file>;
    ssl_certificate_key <certificate key>;
    ssl_session_cache builtin:1000 shared:SSL:10m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;


    location / {

            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

            proxy_pass http://<sh_ip>:<sh_port>;
    }

}


Apache can also act as a proxy with mod_proxy, but I've never set it up.  https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
Google Hangouts:  rcschaff82@gmail.com

nelsonepr

hi, Where should I put that configuration, could you tell me the steps, thanks :D :D :D