So, I've been do it quite a bit or research, and did some tests, but can't find any real solution.
My question is, how can I disable access to hidden linux files (with a dot in front), in Apache, without using htaccess?
I tried adding something like this
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
<DirectoryMatch "^\.|\/\.">
Order allow,deny
Deny from all
</DirectoryMatch>
to the three Apache includes, but doesn't seems to works.
Any clue?
My question is, how can I disable access to hidden linux files (with a dot in front), in Apache, without using htaccess?
I tried adding something like this
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
<DirectoryMatch "^\.|\/\.">
Order allow,deny
Deny from all
</DirectoryMatch>
to the three Apache includes, but doesn't seems to works.
Any clue?