http not forwarding to https

Started by pixelpadre, January 08, 2019, 01:57:34 PM

Previous topic - Next topic

pixelpadre

cwp domains not forwarding to https.  Direct https works fine though.

I use htaccess to fix.

glorency

Use this code

return 301 https://$host:2031$request_uri;   on 

# 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