usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.56k stars 602 forks source link

Force https on reverse proxy #324

Open tnga opened 4 years ago

tnga commented 4 years ago

Hi, I used rewrite rules to force https, but it seems to not work with reverse proxy address. The reverse proxy was configured on OpenLiteSpeed WebAdmin.

Please is there a special to do to make the rules work with reverse proxy ? Thanks !

### Rewrite Rules Added by CyberPanel Rewrite Rule Generator

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

### End CyberPanel Generated Rules.
jordanlambrecht commented 3 years ago

Hi @tnga. Did you solve this issue or do you still need help with it? It's been almost a year since you posted and it would be great if you could close this issue out to help keep the Issues backlog clear. For future reference, the CyberPanel forums will yield better results for problems like this.