aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-07-16 20:07:13 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-07-16 20:07:13 +0200
commit5216bf44838f8395d27b3df4ec1641a6407cb466 (patch)
treefdf7a254da5f0ffa386d5b66564551ac32169dfb /phpBB
parentc56ebb53125676c7962c1547a649c982aef60664 (diff)
downloadforums-5216bf44838f8395d27b3df4ec1641a6407cb466.tar
forums-5216bf44838f8395d27b3df4ec1641a6407cb466.tar.gz
forums-5216bf44838f8395d27b3df4ec1641a6407cb466.tar.bz2
forums-5216bf44838f8395d27b3df4ec1641a6407cb466.tar.xz
forums-5216bf44838f8395d27b3df4ec1641a6407cb466.zip
[prep-release-3.2.1] Add missing .htaccess file
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/db/migration/data/v32x/.htaccess33
1 files changed, 33 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/.htaccess b/phpBB/phpbb/db/migration/data/v32x/.htaccess
new file mode 100644
index 0000000000..44242b5418
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v32x/.htaccess
@@ -0,0 +1,33 @@
+# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
+# module mod_authz_host to a new module called mod_access_compat (which may be
+# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
+# We could just conditionally provide both versions, but unfortunately Apache
+# does not explicitly tell us its version if the module mod_version is not
+# available. In this case, we check for the availability of module
+# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
+<IfModule mod_version.c>
+ <IfVersion < 2.4>
+ <Files "*">
+ Order Allow,Deny
+ Deny from All
+ </Files>
+ </IfVersion>
+ <IfVersion >= 2.4>
+ <Files "*">
+ Require all denied
+ </Files>
+ </IfVersion>
+</IfModule>
+<IfModule !mod_version.c>
+ <IfModule !mod_authz_core.c>
+ <Files "*">
+ Order Allow,Deny
+ Deny from All
+ </Files>
+ </IfModule>
+ <IfModule mod_authz_core.c>
+ <Files "*">
+ Require all denied
+ </Files>
+ </IfModule>
+</IfModule>