Browse Source

Fix .htaccess files for Apache 2.4 (and 2.2)

Refer to module by suitable file name (mod_*.c).
Test for mod_authz_core.c (instead of mod_authz_host.c) to properly
detect Apache 2.4 and avoid false positive for Apache 2.2.
pull/2429/head
Alexander Achenbach 3 years ago
parent
commit
21c01779b1
  1. 4
      .htaccess.dist
  2. 4
      bin/.htaccess
  3. 4
      conf/.htaccess
  4. 4
      data/.htaccess
  5. 4
      inc/.htaccess
  6. 4
      inc/lang/.htaccess
  7. 4
      vendor/.htaccess

4
.htaccess.dist

@ -4,10 +4,10 @@
## make sure nobody gets the htaccess, README, COPYING or VERSION files
<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>

4
bin/.htaccess

@ -1,7 +1,7 @@
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>

4
conf/.htaccess

@ -1,8 +1,8 @@
## no access to the conf directory
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>

4
data/.htaccess

@ -1,7 +1,7 @@
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>

4
inc/.htaccess

@ -1,8 +1,8 @@
## no access to the inc directory
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>

4
inc/lang/.htaccess

@ -1,8 +1,8 @@
## no access to the lang directory
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>

4
vendor/.htaccess

@ -1,7 +1,7 @@
<IfModule mod_authz_host>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
Loading…
Cancel
Save