How to disable/lock a domain?

#1
Hello,

Since using LiteSpeed, we prefer to simply disable a single website via the LSWS admin panel rather than fully suspend the account. That way, the web access is still disabled, but the user can still login to resolve the issue (i.e. delete files, etc).

This works fine, but the only problem is, if we do a graceful restart of LSWS it enables all the domains that we had previously disabled/stopped.

Any way to workaround this?
 

NiteWave

Administrator
#2
are you using any control panel(cPanel/WHM etc)?

if you're not using any other control panel, just using LSWS's admin panel to configure virtual hosts, I think there are many workaround to do it. one way is to change its domain name to a non-exist domain, another way is to create a new listener to listen to port say 8080, and assign the virtual host to this listener. or add a rewrite rule at vhost level:

Code:
RewriteRule /(.*) - [F]
 
Top