Hi
We have a nodejs app running in custom port 88 (ip-address:88) and we want to access the app from root domain. we have pointed our domain to the IP address but it shows nothing. but when accessing domain.com:88 we can see the website. how can we access the website from root domain without custom port?
Now website can view from domain.com:88
We want to access it from domain.com
Thanks.
Comments
If your using the same IP just set up and additional listener on port 88
https://forums.cyberpanel.net/discussion/126/tutorial-how-to-add-2nd-ip-for-websites
Setup CyberPanel without port 8090 (OpenLiteSpeed)
Steps above are common whether you run OpenLiteSpeed or LiteSpeed Enterprise Web server. But now you need to do thing differently. We will discuss OpenLiteSpeed first.
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
}
Please replace https://switch.cyberpanel.net:8090 with the domain you choose in Step 1.
Use Rewrite Rules to Proxy to port 8090
You can now use rewrite rules to proxy traffic to port 8090, now edit rewrite rules for the domain you choose in Step 1 using the rewrite rule guide. You can use these rules:
REWRITERULE ^(.*)$ HTTP://cyberpanel/$1 [P]
Once done, you can now visit CyberPanel on your domain without port 8090. You can also visit PHPMyAdmin and Rainloop.