]> git.openstreetmap.org Git - chef.git/commitdiff
dmca: Deny access to .git directory
authorGrant Slater <github@firefishy.com>
Tue, 9 May 2023 13:25:29 +0000 (14:25 +0100)
committerGrant Slater <github@firefishy.com>
Tue, 9 May 2023 13:25:29 +0000 (14:25 +0100)
cookbooks/dmca/templates/default/apache.erb

index 5b2e320d693d5720008ec86654da3bdd259c045d..d59bb7e228a30a9d16c8896352c05213fd8ebafc 100644 (file)
@@ -56,3 +56,7 @@
     SetHandler "proxy:unix:/run/php/php-<%= @name %>-fpm.sock|fcgi://127.0.0.1"
   </FilesMatch>
 </Directory>
+
+<Directory ~ "\.git">
+  Require all denied
+</Directory>