From 458cccd854058424cd87be81fe36b3f7675df592 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Fri, 3 Jan 2020 14:01:40 +0100 Subject: [PATCH] Send query string upstream --- nginx.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index 09ce0ee..659d0d6 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -340,7 +340,7 @@ server { {{ end }} {{ else if $vhost_index }} index {{ $vhost_index }}; - try_files $uri $uri/ /{{ $vhost_index }}; + try_files $uri $uri/ /{{ $vhost_index }}?$query_string; {{ end }} {{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }} @@ -421,7 +421,7 @@ server { {{ end }} {{ else if $vhost_index }} index {{ $vhost_index }}; - try_files $uri $uri/ /{{ $vhost_index }}; + try_files $uri $uri/ /{{ $vhost_index }}?$query_string; {{ end }} {{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}