OpenLiteSpeed Access Control --- I messed up and now I'm locked out
I have tried posting this question on the OpenLiteSpeed forum but I haven't got an answer back.
In the OpenLiteSpeed web admin portal under access control, I restricted web admin portal access to my domain IP. This was a bone head rookie mistake. Now, I can't log into the OpenLiteSpeed web admin portal.
Any ideas on how to remove my domain IP address and set it back to ALL???
1 Reply
I tried for a while to recreate this for you. I spun up a server with our LiteSpeed Wordpress Marketplace App and I cannot get it to block me. On both the server configuration
and web admin settings
sections, I removed ALL from the allow list and added my IPs (both Ipv6 and IPv4) to the deny list. I can still log in.
That said, I was able to find the section in the command line from a local terminal application where you can likely change the configurations and hopefully get yourself back in.
If I edit the following file with a text editor, the changes are reflected in the web admin settings:
/usr/local/lsws/admin/conf/admin_config.conf
I found the settings for the server configuration
allow list here:
/usr/local/lsws/conf/httpd_config.conf
Editing those files so that the allow list says ALL and completely removing the deny line may help.
Because I couldn't manage to lock myself out, I'm not sure how restarting the service (which is required to apply changes from the web interface) may work here. You might have to do some additional troubleshooting here, but I'm hoping this helps. This guide will help you restart the service from the command line if needed.
Once I found those files, I searched for matches to the file paths on Google and found this forum post about returning to default configurations that makes me think you should be able to update the file itself without access to the web panel. If you can update the file with the original to restore the default settings, I would imagine you can change just the allow and deny lists without issue.