You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Júlio Maranhão <ju...@ieav.cta.br> on 2006/09/29 14:05:06 UTC

[users@httpd] Cascading Allow/Deny directives

I can't find in the manual if it is possible to cascade Allow/Deny directives.

I made some tests and I think it's not possible.

For instance:

<Directory "/">
     Options None
     AllowOverride None
     Order allow,deny
     Allow from 127.0.0.1
</Directory>

<Directory "/www">
     Options +Indexes
     Allow from example.com
</Directory>

In the above example the Options are cascaded but the Order/Allow/Deny from 
"/" are not considered. Actually "/www" are accessed from all.

My idea is to restrict the access from all and allow per <Directory>. But I 
have some domains that have access to many directories and probably I will 
repeat them for every <Directory>. Is there another way?

Cheers

Júlio Maranhão


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org