From 252e8fb391c485798c782b9bad1e7582de08a78f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 7 Jan 2020 21:38:52 -0700 Subject: [PATCH] Update fusionpbx.conf --- freebsd/resources/nginx/fusionpbx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freebsd/resources/nginx/fusionpbx.conf b/freebsd/resources/nginx/fusionpbx.conf index 884432e..fb20d07 100755 --- a/freebsd/resources/nginx/fusionpbx.conf +++ b/freebsd/resources/nginx/fusionpbx.conf @@ -31,7 +31,7 @@ server { include fastcgi_params; } - #disable viewing of .htaccess, htpassword, and .db + #disable viewing of .htaccess, htpassword, .db and .git location ~ /\.htaccess { deny all; } @@ -41,6 +41,9 @@ server { location ~^.+.(db)$ { deny all; } + location ~ .git { + deny all; + } } server {