Control Web Panel

WebPanel => SSL => Topic started by: pixelpadre on January 08, 2019, 01:57:34 PM

Title: http not forwarding to https
Post by: pixelpadre on January 08, 2019, 01:57:34 PM
cwp domains not forwarding to https.  Direct https works fine though.

I use htaccess to fix.
Title: Re: http not forwarding to https
Post by: glorency on March 14, 2019, 07:15:13 AM
Use this code

Code: [Select]
return 301 https://$host:2031$request_uri;   on 

Code: [Select]
# vi /usr/local/cwpsrv/conf/cwpsrv.conf
server {
        listen       2030;
        listen       2086;
        server_name  localhost;
        return 301 https://$host:2031$request_uri;
        rewrite "/cwp_([0-9a-zA-Z]{32})/(.*)" /$2;

or Just follow this Guide : https://bit.ly/2UC49eu