proxy to a backend web server (reverse proxy)

#1
What will be OLS rules when we only wanted to set up SSL on OLS?

Communication between the OLS web server and backend apache will be over plain HTTP only. But end-user only work on https via proxy.
 

lsqtwrk

Administrator
#2
what do you mean ?

if you want to set OLS for HTTPS , then just set it as normal OLS sites , SSL setting in listener or vhost setting

and then set reverse proxy to Apache's HTTP port , but be aware, some sites , like wordpress, will also have its own HTTPS redirection if you set site URL to https:// and this might cause the redirection loop.
 

lsqtwrk

Administrator
#4
https://forum.openlitespeed.org/thr...p-address-in-access-log.4058/page-2#post-7813

in that rule set

Code:
RewriteCond %{HTTPS} !=on

RewriteRule (.*) https://DOMAINNAME/$1[R=301,L]
#for https


RewriteCond %{REQUEST_URI} !admin
RewriteRule .* [E=Cache-Control: public, max-age=120]
#if URL does not contain admin , then cache it for 120 seconds


RewriteRule ^.(*)$ http://apachehttps/$1 [P,L]
# if not cached, proxy it to apache
the last one you set , "apachehttps" , I assume you pointed to apache HTTPS port, you can create another external app to point to apache HTTP port , and change the name to "apachehttp" (without S)
 
Top