Block access to .git directory via web server

This commit is contained in:
Janek Bevendorff 2015-10-21 16:23:26 +02:00
parent 0a10d95252
commit dd2f0fdc4d

View file

@ -6,3 +6,6 @@ RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
Options +ExecCGI
AddHandler cgi-script .py
DirectoryIndex index.py
# Don't allow access to .git folder for security reasons
RedirectMatch 404 /\.git