Hi all,
I'm trying to tell apache to make all the files in a directory accessible
for anybody, but not those in the subdirectories.
I tried it with the following lines:
<Directory "/absolute/path">
order deny,allow
deny from all
</Directory>
# Now every request is rejected (even for all subdirectories)
<DirectoryMatch "^/absolute/path$">
<Files *>
order deny,allow
allow from all
</Files>
</DirectoryMatch>
# and this should allow requests for the given absolute path, but not for
its subdirectories. Unfortunately, it denies any request.
The $ sign is the crucial point. It should ensure that this expression
doesn't only match with the absolute path, and no subpaths.
Could anyone tell me the correct regular expression, to solve this?
Thanks in advance,
Can Oezdemir
>> Stay informed about: Directory-Directives without influencing subdirectories