aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-07-10 22:10:08 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-07-10 22:14:24 -0700
commitbb4cab09814215813f7edafb436468ed98711a08 (patch)
tree0de524e58c758c17fc27ea84b7e35846a7e7cd88
parentBugUrl: enhance Gerrit regex (diff)
downloadbugzilla-bb4cab09814215813f7edafb436468ed98711a08.tar.gz
bugzilla-bb4cab09814215813f7edafb436468ed98711a08.tar.bz2
bugzilla-bb4cab09814215813f7edafb436468ed98711a08.zip
data/cached: add htaccess file
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--data/cached/.htaccess27
1 files changed, 27 insertions, 0 deletions
diff --git a/data/cached/.htaccess b/data/cached/.htaccess
new file mode 100644
index 000000000..89aeaaab1
--- /dev/null
+++ b/data/cached/.htaccess
@@ -0,0 +1,27 @@
+# Allow access to .html/.htmlgz/.json/.yaml/.csv files
+<FilesMatch \.(html|htmlgz|json|yaml|csv)?$>
+ <IfModule mod_version.c>
+ <IfVersion < 2.4>
+ Allow from all
+ </IfVersion>
+ <IfVersion >= 2.4>
+ Require all granted
+ </IfVersion>
+ </IfModule>
+ <IfModule !mod_version.c>
+ Allow from all
+ </IfModule>
+</FilesMatch>
+
+# And no directory listings, either.
+<IfModule mod_version.c>
+ <IfVersion < 2.4>
+ Deny from all
+ </IfVersion>
+ <IfVersion >= 2.4>
+ Require all denied
+ </IfVersion>
+</IfModule>
+<IfModule !mod_version.c>
+ Deny from all
+</IfModule>