Use mod_authz_core when available. Otherwise, fallback to mod_authz_host or mod_access_compat.

https://github.com/lrsjng/h5ai/pull/489
https://github.com/lrsjng/h5ai/issues/504
This commit is contained in:
Wyatt J. Brown
2016-02-27 03:12:37 -05:00
parent ed1ab4053c
commit ca86993091
3 changed files with 20 additions and 9 deletions

View File

@@ -1,3 +1,10 @@
<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 @@
<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