From 840bcd63852988f0e6d22860c4784bd4148999f2 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 11 Dec 2017 16:16:01 +0000 Subject: [PATCH] www/dbq/etc/nginx.conf --- www/dbq/etc/nginx.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/dbq/etc/nginx.conf b/www/dbq/etc/nginx.conf index d9061008..f7048ecc 100644 --- a/www/dbq/etc/nginx.conf +++ b/www/dbq/etc/nginx.conf @@ -18,9 +18,12 @@ location ~ /\. { deny all; } #--------------------------------------------------------------# # All to index.php location @dbq { - rewrite ^(.*)$ /index.php?$query_string last; + if ($DBQ_QUERY_STRING = '') { + set $DBQ_QUERY_STRING $query_string; + } + rewrite ^(.*)$ /index.php?$DBQ_QUERY_STRING last; return 500; - #try_files $uri /index.php?$query_string; + #try_files $uri /index.php?$DBQ_QUERY_STRING; } #--------------------------------------------------------------# -- 2.47.3