Ignore .git directories in Apache DOCROOT
Blog
Written with a loving hand by kitt some time around 13:50 on 28 February 2012
Put this in a VirtualHost
config block to make sure git files aren't served by the Apache process:
<Directorymatch "^/.*/\.git/"> Deny from all </Directorymatch>
Won't work in an .htaccess
file.
Add new comment