Make sure to check your website without HTTPS. If your website is accessible with HTTP and can't be accessible without HTTPS, it means, your domain name is not mapped to the SSL listener automatically when you created the website with the CyberPanel control panel.
In this case, sign into the SSH of your server with root credentials. Open FTP/SFTP and go to the destination:
/usr/local/lsws/conf/
and open "httpd_config.conf" file with any text editor or, IDE. Alternatively, you can simply run the following command line:
nano /usr/local/lsws/conf/httpd_config.conf
Find: listener SSL
and inside brackets create a map entry like this
map yourdomain.com yourdomain.com
and save changes. Finally, restart LiteSpeed by running the command line:
service lsws restart
After saving the httpd_config.conf file, it may look like this:
listener SSL {
address *:443
secure 0
map yourdomain.com yourdomain.com
map yourotherdomains.com yourotherdomains.com
}
This should solve your issue.
---
However, there's another solution, if your website is not even accessible with HTTP protocol:
Run the following command line:
/usr/local/lsws/bin/openlitespeed -t
If there's an error, it should be given the output like the following:
2022-03-22 18:49:17.419972 [WARN] [PlainConf] [module:cache] parseFile find '{' and '}' do not match in the end of file /usr/local/lsws/conf/httpd_config.conf, rootTag httpServerConfig
Now, as you can see the above result says that there is an error in /usr/local/lsws/conf/httpd_config.conf
So now go ahead and get your hands on that file and go through it thoroughly, for us (when we did check) the error was inside the file at line 250, There was a lot of "NUL NUL NUL NUL NUL". The output may:
module cache {
is_enabled 1
NUL NUL NUL NUL NUL
}
Just delete that and correctly indented it as shown below:
module cache {
is_enabled 1
checkPrivateCache 1
checkPublicCache 1
maxCacheObject 10000000
maxStaleAge 200
qsCache 1
.................
.................
}
At " ................. ", the other lines of the config file should be added!
Now, make sure to fix the error was, run this command again:
/usr/local/lsws/bin/openlitespeed -t
and didn’t receive any output which means it's fixed. Finally after all of this reboot the LiteSpeed:
service lsws restart
That's all.
