I follow this guide
However, I do not know how to config the last step for OpenLiteSpeed
I put
REWRITERULE ^(.*)$ HTTP://xxtap/$1 [P]
in rewrite =rule but 502 404 error. Why?
I follow this guide
However, I do not know how to config the last step for OpenLiteSpeed
I put
REWRITERULE ^(.*)$ HTTP://xxtap/$1 [P]
in rewrite =rule but 502 404 error. Why?
Which part you don’t understand exactly, as it clearly tells you how and which file you can edit to make it work. For example for OpenLiteSpeed
Open command line and edit: /usr/local/lsws/conf/httpd_config.conf
Paste following content:
extprocessor cyberpanel {
type proxy
address https://switch.cyberpanel.net:8090
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}
Which part you don't understand exactly, as it clearly tells you how and which file you can edit to make it work. For example for OpenLiteSpeedOpen command line and edit: /usr/local/lsws/conf/httpd_config.conf
Paste following content:
extprocessor cyberpanel { type proxy address https://switch.cyberpanel.net:8090 maxConns 100 pcKeepAliveTimeout 60 initTimeout 60 retryTimeout 0 respBuffer 0 }
I change switch.cyberpanel.net to my subdomain, is that right?
I do not how to Use Rewrite Rules to Proxy to port 8090 exactly, I copied the rule, changed my subdomain in that rule, paste in rewrite rule section, but it still does not work
Anyone can help me with this?
First add this to the .htaccess in the file manager of the hostname
vim /home/your.hostname.domain/public_html/.htaccess
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
REWRITERULE ^(.*)$ http://cyberpanel/$1 [P]
###########################################################3
Finally it should be added to the specified file like this;
vim /usr/local/lsws/conf/httpd_config.conf
extprocessor cyberpanel {
type proxy
address https://your.hostname.domain:8090
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}
@StevenPhan said:
I do not how to Use Rewrite Rules to Proxy to port 8090 exactly, I copied the rule, changed my subdomain in that rule, paste in rewrite rule section, but it still does not work
Do NOT change the rewrite rule given. It will break the rule.