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)) }}