From 48aa69bfc9f7e761fc310c14d9942342303d7860 Mon Sep 17 00:00:00 2001 From: kasun Date: Mon, 17 Jun 2024 09:28:43 +0530 Subject: [PATCH] Update default.conf Add a Rule to Deny Access to the .git Directory --- nginx/conf.d/default.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 5be439b..f5e9fbe 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -38,4 +38,8 @@ server { location ~ /\.ht { deny all; } + + location ~ /\.git { + deny all; + } }