From 03b098a7966ade4b512d89d2eef31b55618eeb13 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Tue, 23 Aug 2022 09:27:39 -0500 Subject: [PATCH] nginx conf tweaks --- root/defaults/nginx/site-confs/default.conf.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/defaults/nginx/site-confs/default.conf.sample b/root/defaults/nginx/site-confs/default.conf.sample index 5978857..154b371 100644 --- a/root/defaults/nginx/site-confs/default.conf.sample +++ b/root/defaults/nginx/site-confs/default.conf.sample @@ -17,10 +17,11 @@ server { #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; - try_files $uri $uri/ /index.php?$query_string; + try_files $uri $uri/ /index.php$is_args$args; } ## https://github.com/getgrav/grav/blob/develop/webserver-configs/nginx.conf + ## Begin - Security # deny all direct access for these folders location ~* /(\.git|cache|bin|logs|backup|tests)/.*$ { return 403; }