Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iglvzx/IGalvez.Autoindex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIzzy Galvez <i@igalvez.net>2015-10-26 18:15:52 +0300
committerIzzy Galvez <i@igalvez.net>2015-10-26 18:15:52 +0300
commitf6b02e8ee1e22d395ea1c2d556d8bc95610cac9c (patch)
tree770f9019199151cf15ffb544054e0ac3eb609e2d
parentad5d091292c4661709a2e79f466df39dad1d02c7 (diff)
throw a 404 error in place of 403 forbidden for .logs and .git folder/files. This is more secure.
-rwxr-xr-x.htaccess3
-rw-r--r--.logs/.htaccess1
2 files changed, 3 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 35f1214..e0411cf 100755
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,6 @@
+RedirectMatch 404 /\.git
+RedirectMatch 404 /\.logs
+
# Disable index.html per http://serverfault.com/a/434056
# If running Apache 2.4, you can set the following instead:
# DirectoryIndex disabled
diff --git a/.logs/.htaccess b/.logs/.htaccess
deleted file mode 100644
index 5a928f6..0000000
--- a/.logs/.htaccess
+++ /dev/null
@@ -1 +0,0 @@
-Options -Indexes