Improve directory protection for Apache 2.4

This commit is contained in:
Thomas Bruederli
2015-05-07 14:13:02 +02:00
parent 012555c1ce
commit 585ee9e181
4 changed files with 24 additions and 3 deletions

View File

@@ -169,6 +169,12 @@ rewrite rules. In order to properly secure your installation, please enable
mod_rewrite for Apache webserver and double check access to the above listed
directories and their contents is denied.
NOTE: In Apache 2.4, support for .htaccess files has been disabled by
default. Therefore you first need to enable this in your Apache main or
virtual host config by with:
AllowOverride all
UPGRADING
=========

View File

@@ -1,2 +1,7 @@
# deny webserver access to this directory
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
Deny from all
</ifModule>

View File

@@ -1,2 +1,7 @@
# deny webserver access to this directory
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
Deny from all
</ifModule>

View File

@@ -1,2 +1,7 @@
# deny webserver access to this directory
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
Deny from all
</ifModule>