Block access to .git directory via web server
This commit is contained in:
parent
0a10d95252
commit
dd2f0fdc4d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue