From: Nicolas Boisselier Date: Mon, 11 Dec 2017 16:16:01 +0000 (+0000) Subject: www/dbq/etc/nginx.conf X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=840bcd63852988f0e6d22860c4784bd4148999f2;p=nb.git www/dbq/etc/nginx.conf --- 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; } #--------------------------------------------------------------#