Author Topic: http not forwarding to https  (Read 5301 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
http not forwarding to https
« on: January 08, 2019, 01:57:34 PM »
cwp domains not forwarding to https.  Direct https works fine though.

I use htaccess to fix.

Offline
*
Re: http not forwarding to https
« Reply #1 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