"Deny from all" statements do not work in Apache 2.4. They are replaced by "Require all denied". A check was added to make the .htaccess files work with both Apache 2.2 & 2.4.pull/4885/head
parent
bc432c19b4
commit
631b957b11
@ -1,3 +1,9 @@ |
||||
<FilesMatch "(?i)\.(php5|php4|php|php3|php2|phtml|pl|py|jsp|asp|sh|cgi)$"> |
||||
deny from all |
||||
<IfModule mod_authz_core.c> |
||||
Require all denied |
||||
</IfModule> |
||||
<IfModule !mod_authz_core.c> |
||||
Order allow,deny |
||||
Deny from all |
||||
</IfModule> |
||||
</FilesMatch> |
Loading…
Reference in new issue