httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Authentication for virtual host
Date Tue, 03 Dec 2002 08:35:26 GMT
Authentication is triggered by directory accesses so putting the Auth*
directives in a directory container on the docroot will protect the
whole site. I'm not sure what you mean by "aliases outside the tree"...
You only authenticate once so after "logging in" to the homepage, it's
immaterial whether content comes from outside the docroot. On the other
hand, direct requests for resources under aliases will not lead to
filesystem accesses under the docroot so will not trigger
authentication. e.g.

ServerName banana
DocumentRoot /home/web/banana
<Directory /home/web/banana>

Alias /kiwi /home/web/kiwi

Then http://banana/page.html will trigger authentication but
http://banana/kiwi/page.html (which will cause a filesystem access to
/home/web/kiwi/page.html) will not.


Owen Boyle

>-----Original Message-----
>From: Richard Hector []
>Sent: Dienstag, 3. Dezember 2002 08:14
>To: Apache Users
>Subject: [users@httpd] Authentication for virtual host
>Hi all,
>I want to use authentication for a whole (name based) virtual host.
>As far as I can see, the authentication directives must be applied to a
>directory - OK, I could apply it to the document root of the 
>What I'm not so sure of, is whether that will catch aliases to
>directories outside that tree, and which are sometimes shared 
>with other
>virtual hosts. And if I have to protect them seperately, how do I do
>that without affecting the other hosts?
>The particular situation is that the development site needs protecting
>while the live one doesn't.
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message