summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-11 12:05:50 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-11 12:05:50 -0400
commitc4a48eda9a16a00226916520219e1ba096f1ad1b (patch)
tree30616a296b35805f45ddd83f0ee5ff8d9a3e059e /.htaccess
parent41df1a40ab57e939c968e254df8a244b87876d51 (diff)
Check for mod_version
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess17
1 files changed, 12 insertions, 5 deletions
diff --git a/.htaccess b/.htaccess
index 9a552944..45123a98 100644
--- a/.htaccess
+++ b/.htaccess
@@ -9,11 +9,18 @@
</IfModule>
<FilesMatch "(kanboard|config.php|config.default.php)">
- <IfVersion >= 2.3>
- Require all denied
- </IfVersion>
- <IfVersion < 2.3>
+ <IfModule mod_version.c>
+ <IfVersion >= 2.3>
+ Require all denied
+ </IfVersion>
+ <IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+ </IfVersion>
+ </IfModule>
+
+ <IfModule !mod_version.c>
Order allow,deny
Deny from all
- </IfVersion>
+ </IfModule>
</FilesMatch>