Update fusionpbx.conf

This commit is contained in:
FusionPBX 2020-01-07 21:48:08 -07:00 committed by GitHub
parent 252e8fb391
commit 1f4f9b061b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 5 deletions

View File

@ -41,9 +41,12 @@ server {
location ~^.+.(db)$ {
deny all;
}
location ~ .git {
deny all;
}
location ~ /\.git {
deny all;
}
location ~ /\. {
deny all;
}
}
server {
@ -145,7 +148,7 @@ server {
include fastcgi_params;
}
#disable viewing of .htaccess, htpassword, and .db
#disable viewing of .htaccess, htpassword, .db, and .git
location ~ /\.htaccess {
deny all;
}
@ -155,6 +158,12 @@ server {
location ~^.+.(db)$ {
deny all;
}
location ~ /\.git {
deny all;
}
location ~ /\. {
deny all;
}
}
server {
@ -261,7 +270,7 @@ server {
include fastcgi_params;
}
#disable viewing of .htaccess, htpassword, and .db
#disable viewing of .htaccess, htpassword, .db, and .git
location ~ /\.htaccess {
deny all;
}
@ -271,5 +280,11 @@ server {
location ~^.+.(db)$ {
deny all;
}
location ~ /\.git {
deny all;
}
location ~ /\. {
deny all;
}
}