forked from shaarli/Shaarli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.htaccess files: support Apache 2.4+ syntax
If `mod_version` is enabled, the previous syntax will apply for Apache <2.4. If not, the new syntax is used by default. Fixes shaarli#676 `mod_version` identifier is `version_module` across all Apache versions. See: * https://httpd.apache.org/docs/current/mod/mod_version.html * https://httpd.apache.org/docs/2.2/mod/mod_version.html * https://serverfault.com/questions/733910/how-do-i-load-mod-version-only-if-it-isnt-built-in-to-apache Note that version_module comes built-in with Debian (and derivatives) Apache2 packages, see https://wiki.debian.org/Apache/PackagingFor24
- Loading branch information
1 parent
849d165
commit 5ebc1d5
Showing
7 changed files
with
91 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
Allow from none | ||
Deny from all | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |