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 sucommandGo to the directory where
httpd_config.conffile is
cd /usr/local/lsws/confEdit the
httpd_config.conffile
nano httpd_config.confAdd the following code inside
httpd_config.confand 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 restartCongratulations, Now you can access Cyberpanel using a normal domain name without appending the port number. For example https://c01.sikka.io
Last updated