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