Skip to content

Commit

Permalink
Adapt .htaccess files for Apache 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerflamme committed Dec 7, 2015
1 parent 92ec877 commit 6e2d09a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 12 deletions.
9 changes: 7 additions & 2 deletions .htaccess.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@

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

## Uncomment these rules if you want to have nice URLs using
Expand Down
9 changes: 7 additions & 2 deletions bin/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
9 changes: 7 additions & 2 deletions conf/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## no access to the conf directory
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
9 changes: 7 additions & 2 deletions data/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
9 changes: 7 additions & 2 deletions inc/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## no access to the inc directory
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
9 changes: 7 additions & 2 deletions inc/lang/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## no access to the lang directory
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>

0 comments on commit 6e2d09a

Please sign in to comment.