diff --git a/src/roles/htdocs/templates/.htaccess.j2 b/src/roles/htdocs/templates/.htaccess.j2 index fcebf0db0..fc23504b3 100644 --- a/src/roles/htdocs/templates/.htaccess.j2 +++ b/src/roles/htdocs/templates/.htaccess.j2 @@ -4,6 +4,9 @@ # Enable mod_rewrite engine RewriteEngine on + # deny access to git repository info + RewriteRule "^(.*/)?\.git/" - [F,L] + RewriteBase / # This is needed for Links inside MS Office documents to resolve properly