Disable viewing of .git directory (#214)

This commit is contained in:
Ben Knowles
2019-01-04 17:27:59 -06:00
committed by FusionPBX
parent 96c487a327
commit 17271a2f61

View File

@@ -31,7 +31,7 @@ server {
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db
# Disable viewing .htaccess & .htpassword & .db & .git
location ~ .htaccess {
deny all;
}
@@ -41,6 +41,9 @@ server {
location ~^.+.(db)$ {
deny all;
}
location ~ /.git/ {
deny all;
}
}
server {
@@ -137,7 +140,7 @@ server {
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db
# Disable viewing .htaccess & .htpassword & .db & .git
location ~ .htaccess {
deny all;
}
@@ -147,6 +150,9 @@ server {
location ~^.+.(db)$ {
deny all;
}
location ~ /.git/ {
deny all;
}
}
server {
@@ -243,7 +249,7 @@ server {
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db
# Disable viewing .htaccess & .htpassword & .db & .git
location ~ .htaccess {
deny all;
}
@@ -253,4 +259,7 @@ server {
location ~^.+.(db)$ {
deny all;
}
location ~ /.git/ {
deny all;
}
}