Redirect http to https in reverse proxy

edan

New Member
#1
Hi,

I have OpenLiteSpeed running as reverse proxy, but I have mix success for redirecting http traffic to https with proxy, where my desktop browser able to be redirected but my mobile phone browser is not, these are the rewrite rules:

RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^(.*)$ https://webhttps/$1 [P,L,E=proxy-host:example.com]

Thank you
 

lsqtwrk

Administrator
#2
Hi,

then you may need to enable server log to figure out what exactly was the request OLS received and how it processed

go to server conf -> log -> debug log to advance , then look at /usr/local/lsws/logs/error.log

it should give you some hint.
 
Top