Joshua Slive wrote:
On 4/19/07, Ben Roberts <[EMAIL PROTECTED]> wrote:
Hello there,
I need to setup htpasswd protection on a web directory served by Apache.
I also need to permit access to the index file in the specified
directory, but block access to any other files or subdirectorie
Hello there,
I need to setup htpasswd protection on a web directory served by Apache.
I also need to permit access to the index file in the specified
directory, but block access to any other files or subdirectories.
So I'm using a configuration like this:
Order deny,allow
Al
I know this can be done by creating a new virtual host container for
foo.domain.com instead of using a serveralias, but I'd rather not do
that if possible.
Why not? sections are designed for exactly this purpose.
Joshua.
Yes I suppose so. I've also realised I now need to configure logging
Does anybody know if it's possible to apply htpasswd authentication to a
particular directory ONLY if a specific ServerAlias is requested.
e.g. I have a single virtual host container, with 2 server aliases:
ServerName www.domain.com
ServerAlias foo.domain.com