Page 1 of 1

hiding .htaccess in subdirectories doesn't work

PostPosted: 08. August 2009 06:11
by FischeFr
At first I am a (bloody) beginner..

I have the following lines in my /opt/lampp/etc/httpd.conf so I expected that apache doesn't deliver .htaccess files:

Code: Select all
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>


This seems to work for files in the htdocs directory but in subdirectories it doesn't.
Can someone explain why? I would like to avoid that these files are delivered by default in all directories.

Please help me!