diff options
-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': } } |