Skip to content

Commit d85741a

Browse files
committed
.htaccess: Add compatibility for apache 2.4
1 parent 92cf7f4 commit d85741a

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@
99
</IfModule>
1010

1111
<FilesMatch "(kanboard|config.php|config.default.php)">
12-
Deny from all
12+
<IfVersion >= 2.3>
13+
Require all denied
14+
</IfVersion>
15+
<IfVersion < 2.3>
16+
Order allow,deny
17+
Deny from all
18+
</IfVersion>
1319
</FilesMatch>

app/.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
Deny from all
1+
<IfVersion >= 2.3>
2+
Require all denied
3+
</IfVersion>
4+
<IfVersion < 2.3>
5+
Order allow,deny
6+
Deny from all
7+
</IfVersion>

data/.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
Deny from all
1+
<IfVersion >= 2.3>
2+
Require all denied
3+
</IfVersion>
4+
<IfVersion < 2.3>
5+
Order allow,deny
6+
Deny from all
7+
</IfVersion>

doc/.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
Deny from all
1+
<IfVersion >= 2.3>
2+
Require all denied
3+
</IfVersion>
4+
<IfVersion < 2.3>
5+
Order allow,deny
6+
Deny from all
7+
</IfVersion>

tests/.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
Deny from all
1+
<IfVersion >= 2.3>
2+
Require all denied
3+
</IfVersion>
4+
<IfVersion < 2.3>
5+
Order allow,deny
6+
Deny from all
7+
</IfVersion>

0 commit comments

Comments
 (0)