b_r_h
08-11-2009, 11:20 AM
Hello,
I have tried and read many articles about disabling files from apache, but I didn't manage it work.
This one taken from httpd.conf is working ok. I cannot even with direct reference see file eg. http://myserver/.htfile
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
but if I change this to files con, it's not working I cannot see in directory listing, but can direct read it. http://myserver/conn.inc
<FilesMatch "^\co">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
My coal is totally apache ignore my *.inc -files. I have tried following, with no success
<FilesMatch "\.inc">
Order Allow,Deny
Deny from all
</FilesMatch>
There must be something I cannot see?
I have tried and read many articles about disabling files from apache, but I didn't manage it work.
This one taken from httpd.conf is working ok. I cannot even with direct reference see file eg. http://myserver/.htfile
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
but if I change this to files con, it's not working I cannot see in directory listing, but can direct read it. http://myserver/conn.inc
<FilesMatch "^\co">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
My coal is totally apache ignore my *.inc -files. I have tried following, with no success
<FilesMatch "\.inc">
Order Allow,Deny
Deny from all
</FilesMatch>
There must be something I cannot see?