httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabricio Luiz Machado <>
Subject Re: [users@httpd] Forbidden Directories
Date Wed, 18 Aug 2004 12:52:33 GMT

 I did this:

At "client01" directory, I put this .htaccess:

Order Deny,Allow
Deny from all

...and at "appname01" and "appname02" subdirectory, I put this

Order Allow,Deny
Allow from all

I´ll now try to simplify it...



 --- escreveu: 
> I believe this can be easily solved.
> I assume you are familiar with the .htaccess file. Well, put a
> .htaccess in 
> the directory in question. Configure the .htaccess to deny access to
> that 
> directory. (not sure how, google it). Then put another .htaccess in
> the 
> subdirectory, and leave it blank. 
> You see, .htaccess perforates all subdirectories. However, if you put
> a new 
> .htaccess in a subdirectory, it will see that as priority .htaccess
> file, and 
> if you don't put the command for blocking that directory, it won't.
> So, the .htaccess lesson for today is that the closest one has
> priority.
> Hope I helped.

Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse:

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