add config for apache 2.4 and 2.2

This commit is contained in:
Uwe Steinmann 2020-01-16 10:57:07 +01:00
parent daf08343e3
commit 0dbeebee80

View File

@ -1,6 +1,10 @@
# Make sure settings.xml can not be opened from outside!
#Redirect /conf/settings.xml /index.php
<Files ~ "^settings\.xml">
Order allow,deny
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</Files>
</IfModule>