The problem you describe has no obvious solution, so there must be
additional config directives interfering with your setup. See notes
below:  

> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marc
> Sent: Monday, January 14, 2008 4:46 PM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Apache ACL
> 
> Hello people, 
> 
> following issue:
> 
> Here is the directory layout
> |-- dir1
> |   |-- dir2
> |   |   `-- dir3
> 
> In dir1 is a .htaccess:
> 
> <FilesMatch "\.php$">
> Order Deny,Allow
> Deny from all
> </FilesMatch>
> 
> Directory dir3 contains an .htacess with "Options +Indexes" 
> and .gif-files only.
> 
> If I remove the .htaccess in dir1 the directory listing is displayed.

In which dir - dir3?

> 
> If I keep it, the .htaccess in dir3 seems to be ignored as 
> Error 403 (Forbidden)
> is returned.

>From what URL?
What is in the error log for this request?
What else is in the .htaccess file in dir3?
Any .htaccess in dir2?

> 
> If I write "<FilesMatch "\.gif$">" instead of php in the 
> .htaccess in dir1 it
> all works, and the gif files in dir3 are not displayed (as it 
> should be, an
> empty directory listing is returned). 

What are you actually trying to achieve? Full access to GIFs with
directory-indexing in dir3, but 403 from all PHPs wherever?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> So what is it with the 
> PHP files? It seems
> to behave like I am unable to access any subdirectory of a 
> directory containing
> a .php file with the FilesMatch directive above. Why??
> 
> Thanks for any input you might have on this.
> 
> Regards,
> Marc
> 
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. 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. The sender's company reserves the right to 
monitor all e-mail communications through their networks.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to