Noob: How to set HTTP username/pass for virtual host

Discussion in 'Install/Configuration' started by davidj, Feb 8, 2007.

  1. davidj

    davidj Member

    I understand this to be a really "noob" question, but:

    I have an application which I am currently developing, running as a virtual host in my LS 2.2. I want to add a standard HTTP username/password protection, to avoid visitors browsing the site before it is launched.

    Could some friendly soul please explain in a series of steps how I go about doing that?

  2. mistwang

    mistwang LiteSpeed Staff

    Please check the authentication realm configuration in the documentation.
  3. davidj

    davidj Member

    Thanks, I have now made a "Demo" realm and created a "demo" user within that realm. A note for other users - check permissions on the "User DB" file, or even though you press "Save" after adding users, you will not get any indication of failure nor anything stored in the file.

    But (doh!) how do I now enforce access to my VH, so that only the authenticated "demo" user may access it?
  4. mistwang

    mistwang LiteSpeed Staff

    Add a context with url "/" pointing to document root of vhost, then use your realm there.
  5. davidj

    davidj Member

    I did as instructed and it works like a charm, thank you for very good support :)

Share This Page