forked from norman/fusionpbx-install.sh-github-mirror
Update fusionpbx.conf
This commit is contained in:
@@ -41,9 +41,12 @@ server {
|
|||||||
location ~^.+.(db)$ {
|
location ~^.+.(db)$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~ .git {
|
location ~ /\.git {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
location ~ /\. {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@@ -145,7 +148,7 @@ server {
|
|||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
#disable viewing of .htaccess, htpassword, and .db
|
#disable viewing of .htaccess, htpassword, .db, and .git
|
||||||
location ~ /\.htaccess {
|
location ~ /\.htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
@@ -155,6 +158,12 @@ server {
|
|||||||
location ~^.+.(db)$ {
|
location ~^.+.(db)$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
location ~ /\.git {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
location ~ /\. {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@@ -261,7 +270,7 @@ server {
|
|||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
#disable viewing of .htaccess, htpassword, and .db
|
#disable viewing of .htaccess, htpassword, .db, and .git
|
||||||
location ~ /\.htaccess {
|
location ~ /\.htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
@@ -271,5 +280,11 @@ server {
|
|||||||
location ~^.+.(db)$ {
|
location ~^.+.(db)$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
location ~ /\.git {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
location ~ /\. {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user