httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] issues with <Directory> control
Date Tue, 29 May 2007 21:24:44 GMT
On 5/29/07, Pedro LaWrench <> wrote:
> In my main server, I allow all with
> <Directory /mydocs>
> Order allow,deny
> Allow all
> </Directory>
> Then in a virtual server (different port) I have
> <Directory />
> Order deny,allow
> Allow from
> Deny from all
> </Directory>
> Yet, it appears that all hosts can access /mydocs through the virtual server.
> Even with a deny for / in a virtual server config, is it true that more
> specific directory entries *outside* the virtual server config will still be in
> effect and take precedence?

Yes. For each directory, apache checks first for <Directory> sections
outside vhosts then for <directory> sections inside vhosts. It does
not apply all outside <directory> sections followed by all inside
<directory> sections.


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