Browse Source

Fix #4612 (#4618)

* Fix #4612

* Update nginx.conf

* Change dbraw for dbquery
Joan Miquel 6 years ago
parent
commit
5cf7d1eabe

+ 1 - 1
frameworks/PHP/php/benchmark_config.json

@@ -133,7 +133,7 @@
       "plaintext_url": "/hello",
       "json_url": "/json",
       "db_url": "/dbraw",
-      "query_url": "/dbraw?queries=",
+      "query_url": "/dbquery?queries=",
       "fortune_url": "/fortune",
       "update_url": "/updateraw?queries=",
       "port": 8080,

+ 9 - 2
frameworks/PHP/php/deploy/nginx_php.conf

@@ -51,14 +51,21 @@ http {
             ';
         }
 
-        location /dbraw {
+        location = /dbraw {
             add_header Content-Type application/json;
 	        content_by_php '
-                $_GET = ngx::query_args();
                 include "dbraw.php";
             ';
         }
 
+        location /dbquery {
+            add_header Content-Type application/json;
+	        content_by_php '
+                $_GET = ngx::query_args();
+                include "dbquery.php";
+            ';
+        }
+
         location /update {
             add_header Content-Type application/json;
 	        content_by_php '