Merge pull request #510 from SushiDude/htaccess

Use mod_authz_core when available. Otherwise, fallback to mod_authz_host or mod_access_compat.
This commit is contained in:
Lars Jung 2016-05-28 00:04:37 +02:00
commit 882abd1972
3 changed files with 20 additions and 9 deletions

View file

@ -1,3 +1,10 @@
Satisfy all
Order deny,allow
Deny from all
<IfModule mod_authz_core.c>
#Apache 2.4
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
#Apache 2.2
Satisfy all
Order deny,allow
Deny from all
</IfModule>

View file

@ -1,3 +0,0 @@
Satisfy all
Order deny,allow
Deny from all

View file

@ -1,6 +1,13 @@
Satisfy all
Order allow,deny
Allow from all
<IfModule mod_authz_core.c>
#Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
#Apache 2.2
Satisfy all
Order allow,deny
Allow from all
</IfModule>
DirectoryIndex disabled