diff options
author | mh <mh@immerda.ch> | 2009-02-24 01:20:58 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-02-24 01:20:58 +0000 |
commit | f1d26e139003af87c584879eecb12ed765500838 (patch) | |
tree | eeef7063a736ec0d356048a52944038fbb8528ef | |
parent | 3329e5d2c2bd4ab270f4d8579251c0aa6b7277f8 (diff) |
deny access to git repository folders
-rw-r--r-- | files/conf.d/git.conf | 5 | ||||
-rw-r--r-- | manifests/init.pp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/files/conf.d/git.conf b/files/conf.d/git.conf new file mode 100644 index 0000000..c03ee2b --- /dev/null +++ b/files/conf.d/git.conf @@ -0,0 +1,5 @@ +# deny access to git repository folders +<DirectoryMatch .*\.git/.*> + Order allow,deny + Deny From All +</DirectoryMatch> diff --git a/manifests/init.pp b/manifests/init.pp index a2cad78..d3519d0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -76,6 +76,7 @@ class apache::base { } apache::config::file{ 'defaults.inc': } + apache::config::file{ 'git.conf': } apache::vhost::file { '0-default': } } |