If you want use https always for Admin/User/Wemail panel , So You need to redirect http to https .
For Admin Panel
For Admin Panel
# 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;
For User Panel# vi /usr/local/cwpsrv/conf.d/users.conf
server {
listen 2082;
server_name localhost;
return 301 https://$host:2083$request_uri;
rewrite "/cwp_([0-9a-zA-Z]{16})/(.*)" /$2;
error_log logs/error_log debug;
error_page 404 /index.php?error=404;
For Webmail# vi /usr/local/cwpsrv/conf.d/webmail.conf
server {
listen 2095;
server_name localhost;
return 301 https://$host:2096$request_uri;
Comments
Post a Comment