From ae045eff41f2199a631a46f2dc265f3786406dda Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 7 Sep 2020 05:51:58 -0400 Subject: [PATCH] Update nginx sample config with location deny for bin/ folder --- mods/sample-nginx.config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index 71d3785516..b90e1fe29f 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -141,4 +141,9 @@ server { location ~ /\. { deny all; } + + # deny access to the CLI scripts + location ^~ /bin { + deny all; + } }