httpd-users mailing list archives

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

 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
.htaccess:

Order Allow,Deny
Allow from all


I´ll now try to simplify it...


Thanks!

Fabricio.


 --- AceZero2790@aol.com 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: http://br.acesso.yahoo.com/

---------------------------------------------------------------------
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


Mime
View raw message