OLS on CyPanel 2.3 | index.html > 404

#1
I created 5 websites and added LE SSL to all: everything works.
Then I followed the same procedure for mysite.com
mysite.com has no files, just SFTP access (which works fine) + CFlare DNS pointing to the VPS. (no proxy, SSL: flexible, purged Cache)
I uploaded index.html and tried to reach it | got 404
I checked OLS VirtualHost and it looks like my other (working) websites (attached)
I’ve seen the following posts, and restarted the VPS.
I deleted and recreated mysite.com
I restarted OLS | nothing worked.

> systemctl restart lsws

Looking at the /error.log below it seems the OLS Listener does not exist.
But OLS Panel says the Listeners are on SSL + Unsecure , so mysite.com should be served. (attached)
LITESPEED/1.7.18

/usr/local/lsws/logs/error.log

2023-12-16 10:55:18.443753 [INFO] [1854] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mysite.com/vhost.conf
2023-12-16 10:55:18.443784 [INFO] [1854] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2023-12-16 10:55:18.444271 [NOTICE] [1854] [config:server:vhosts:vhost:mysite.com:epsr:bluep5727.655340] 'Process Limit' probably is too low, adjust the limit to: 640.
2023-12-16 10:55:18.446171 [INFO] [1854] [config:server:vhosts:vhost:mysite.com] config context /.well-known/acme-challenge.
2023-12-16 10:55:18.446630 [INFO] [1854] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/ccl.conf
2023-12-16 10:55:18.447336 [INFO] [1854] [PlainConf] [virtualHostTemplate:] Finished parsing file /usr/local/lsws/conf/templates/ccl.conf
2023-12-16 10:55:18.447364 [INFO] [1854] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2023-12-16 10:55:18.447561 [ERROR] [1854] [config:template:centralConfigLog] Listener [Default] does not exist


Can anyone help?
Many thanks

[1] 404 Error on my websites - #12 by roman
[2] New website returns 404 and log files wasn't created on the server
[3] https://snipboard.io/toYUbz.jpg ** SFTP
[4] https://snipboard.io/5xqW7v.jpg ** OLS
[5] https://snipboard.io/WrIKQD.jpg *** CFlare DNS
[6] https://snipboard.io/e596VF.jpg ** 404
[7] https://snipboard.io/u6nC8s.jpg ** root OK (default index.html - not my file)
[8] How to turn on Extensive Debug logs in OpenLiteSpeed!
[9] https://snipboard.io/xeDqH3.jpg ** Default OLS Listener (secure & unsecure)
 

Cold-Egg

Administrator
#4
Yes, please check if you have Apache installed on the server, if so, remove it. Or, the A record is not pointing to this CyberPanel server yet, please check it with the browser dev tool.
 
#6
Eventually I found the problem, it was a CyPanel BUG.

Initially reported by @vpsingh 6mo ago, I hope someone will look into it . Perhaps Syed, @josephgodwinke @die2mrw007
After struggling for a week , here is my understanding of the issue , and my workaround to fix it in 2 mins - hopefully without breaking anything else.

Although OLS is the HTTP server, Apache2 is also installed by CyPanel.
mysite.com, was in fact served by Apache2 (which is just Apache for Ubuntu), though OLS is installed and running. That’s why I got the Apache2 404

https://community.cyberpanel.net/t/cypanel-2-3-index-html-404/50017/3
 

Cold-Egg

Administrator
#7
Thanks for sharing. I remember Cyberpanel does not come with Apache by default, is it possible that the default OS comes with it?
 
Top