aboutsummaryrefslogtreecommitdiffhomepage
path: root/pagecache
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-03 13:59:18 +0100
committerArthurHoaro <arthur@hoa.ro>2016-11-08 11:38:14 +0100
commit5ebc1d504bc8a8f29f49a8a4fc1c421f78677b2a (patch)
treef1c3ae18e29aa9560593db5721fc35bfe959b82b /pagecache
parent849d1650c1af853162b749af896c20bb25d4a4e8 (diff)
downloadShaarli-5ebc1d504bc8a8f29f49a8a4fc1c421f78677b2a.tar.gz
Shaarli-5ebc1d504bc8a8f29f49a8a4fc1c421f78677b2a.tar.zst
Shaarli-5ebc1d504bc8a8f29f49a8a4fc1c421f78677b2a.zip
.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 #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
Diffstat (limited to 'pagecache')
-rw-r--r--pagecache/.htaccess15
1 files changed, 13 insertions, 2 deletions
diff --git a/pagecache/.htaccess b/pagecache/.htaccess
index b584d98c..f601c1ee 100644
--- a/pagecache/.htaccess
+++ b/pagecache/.htaccess
@@ -1,2 +1,13 @@
1Allow from none 1<IfModule version_module>
2Deny from all 2 <IfVersion >= 2.4>
3 Require all denied
4 </IfVersion>
5 <IfVersion < 2.4>
6 Allow from none
7 Deny from all
8 </IfVersion>
9</IfModule>
10
11<IfModule !version_module>
12 Require all denied
13</IfModule>