summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Wagner <waja@cyconet.org>2015-10-05 22:35:51 +0200
committerJan Wagner <waja@cyconet.org>2015-10-05 22:46:30 +0200
commitd85741a3a13c558942d655d0b161e2d642a70d6c (patch)
tree11b477f4ddd18972beb2bb00dab097670a5dd666
parent92cf7f4df60e3d6105dae5c6c78d58b1577a3f58 (diff)
.htaccess: Add compatibility for apache 2.4
-rw-r--r--.htaccess8
-rw-r--r--app/.htaccess8
-rw-r--r--data/.htaccess8
-rw-r--r--doc/.htaccess8
-rw-r--r--tests/.htaccess8
5 files changed, 35 insertions, 5 deletions
diff --git a/.htaccess b/.htaccess
index d17e5c80..9a552944 100644
--- a/.htaccess
+++ b/.htaccess
@@ -9,5 +9,11 @@
</IfModule>
<FilesMatch "(kanboard|config.php|config.default.php)">
- Deny from all
+ <IfVersion >= 2.3>
+ Require all denied
+ </IfVersion>
+ <IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+ </IfVersion>
</FilesMatch>
diff --git a/app/.htaccess b/app/.htaccess
index 14249c50..c47998cb 100644
--- a/app/.htaccess
+++ b/app/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>
diff --git a/data/.htaccess b/data/.htaccess
index 14249c50..c47998cb 100644
--- a/data/.htaccess
+++ b/data/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>
diff --git a/doc/.htaccess b/doc/.htaccess
index 14249c50..c47998cb 100644
--- a/doc/.htaccess
+++ b/doc/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>
diff --git a/tests/.htaccess b/tests/.htaccess
index 14249c50..c47998cb 100644
--- a/tests/.htaccess
+++ b/tests/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>