How to disable/lock a domain?

Discussion in 'General' started by Nick H, Mar 18, 2010.

  1. Nick H

    Nick H New Member


    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?
  2. NiteWave

    NiteWave Administrator

    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:

    RewriteRule /(.*) - [F]
  3. Nick H

    Nick H New Member

    Yes, I'm using cPanel.
  4. NiteWave

    NiteWave Administrator

    I think you can apply for same workaround described above. :)

Share This Page