1 2 3 4 5
# /etc/apache2/conf-available/no-git.conf <DirectoryMatch "^/.*/\.git*"> Require all denied </DirectoryMatch>