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!