aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/no_hidden_file_dir.conf
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2018-09-04 23:26:18 +0259
committerThomas Backlund <tmb@mageia.org>2018-09-04 23:26:18 +0259
commit4345e41e97f980021e1443c21875a0b889b474dc (patch)
tree883b9c323a419dcc981dc65008d095a9e9fb0ec5 /modules/apache/templates/no_hidden_file_dir.conf
parent365d70d8ecc93b528a6085a2a37568bb6291109d (diff)
downloadpuppet-4345e41e97f980021e1443c21875a0b889b474dc.tar
puppet-4345e41e97f980021e1443c21875a0b889b474dc.tar.gz
puppet-4345e41e97f980021e1443c21875a0b889b474dc.tar.bz2
puppet-4345e41e97f980021e1443c21875a0b889b474dc.tar.xz
puppet-4345e41e97f980021e1443c21875a0b889b474dc.zip
apache: protect any hidden files or dirs with 404
Diffstat (limited to 'modules/apache/templates/no_hidden_file_dir.conf')
-rw-r--r--modules/apache/templates/no_hidden_file_dir.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/apache/templates/no_hidden_file_dir.conf b/modules/apache/templates/no_hidden_file_dir.conf
new file mode 100644
index 00000000..18da03cd
--- /dev/null
+++ b/modules/apache/templates/no_hidden_file_dir.conf
@@ -0,0 +1,4 @@
+#
+# dont serve up any hidden files or dirs like .git*, .svn, ...
+#
+RedirectMatch 404 /\..*$ \ No newline at end of file