summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-10-10 01:20:57 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-10-10 01:20:57 +0200
commit1b094c269e48db1d1b0f983a2e3f44599a182966 (patch)
tree1aea6a6d7448ce71a7dd6d119e699c6eec29ce1e /.htaccess
parente5751517b1e3d35d4d326e249114df8ac9acb01a (diff)
Handle apache2 version >= 2.4 and <= 2.4.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess14
1 files changed, 13 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 149477a..b75ae44 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,15 @@
<Files config.php>
- Require all denied
+ <IfModule mod_version.c>
+ <IfVersion < 2.4>
+ Order allow,deny
+ Deny from all
+ </IfVersion>
+ <IfVersion >= 2.4>
+ Require all denied
+ </IfVersion>
+ </IfModule>
+ <IfModule !mod_version.c>
+ Order allow,deny
+ Deny from all
+ </IfModule>
</Files>