Remove Port 8090 from URL
Add a new website using Cyberpanel that will have the domain/subdomain which will be used to go to the cyberpanel
SSH into the VPS terminal and make sure you're the root user by using the
sudo su
commandGo to the directory where
httpd_config.conf
file is
cd /usr/local/lsws/conf
Edit the
httpd_config.conf
file
nano httpd_config.conf
Add the following code inside
httpd_config.conf
and make sure there's no duplicate
extprocessor cyberpanel {
type proxy
address https://c01.sikka.io:8090
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}
Go to the cyberpanel and edit the website you're using for cyberpanel
Click on rewrite rules and add the following code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^(.*)$ http://cyberpanel/$1 [P]
Restart OpenLiteSpeed to apply the changes using the following command
sudo /usr/local/lsws/bin/lswsctrl restart
Congratulations, Now you can access Cyberpanel using a normal domain name without appending the port number. For example https://c01.sikka.io
Last updated