浏览代码

Update fusionpbx.conf

FusionPBX 5 年之前
父节点
当前提交
1f4f9b061b
共有 1 个文件被更改,包括 20 次插入5 次删除
  1. 20 5
      freebsd/resources/nginx/fusionpbx.conf

+ 20 - 5
freebsd/resources/nginx/fusionpbx.conf

@@ -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;
+        }
 
 }