I found out what was the problem: I had to map the vHost Config of the new site to domain in Listener.
So I used the OpenLiteSpeed interface in Chrome, then I went to “Listeners” I clicked on “SSL” and in “Virtual Host Mappings” and added a new virtual host called “Example” and in the domain field I put my server’s IP address.
This will load the OpenLiteSpeed wellcome message. If you want to open your index.html when you put your server’s IP in browser, you need to go also to OpenLiteSpeed / Virtual Hosts click on “Example” go to the “General” tab and in the “Document Root” add the path to your public_html For example: /home/domainname.com/public_html Don’t forget to replace “domainname.com” with your domain name.
I said to write this here, because a lot of people had the problem with 404 Error of OpenLiteSpeed after installing Cyberpanel and adding a website and entering server’s IP in browser, and nobody came anywhere with a solution.
It will help you this with anything? No. I just learned something new, but it won’t really help me. I just wasted time, instead of just configuring the DNS and changing the DNS at my registrar and after propagation anything should have worked just fine without me mapping anything.
But… if I wanted to know when I enter my server’s IP in browser, why the OpenLiteSpeed will return a 404 Error… what can you say? Haha
I hope it helps you,
Alex