From 1f4f9b061bf8e01f9b97df173e3e61bbc14c7ae2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 7 Jan 2020 21:48:08 -0700 Subject: [PATCH] Update fusionpbx.conf --- freebsd/resources/nginx/fusionpbx.conf | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/freebsd/resources/nginx/fusionpbx.conf b/freebsd/resources/nginx/fusionpbx.conf index fb20d07..61da0ee 100755 --- a/freebsd/resources/nginx/fusionpbx.conf +++ b/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; + } }