Protection protegendo diretórios .git location ~ /\.git { deny all; } faça include no vhost fora de location.