* Fix #4612 * Update nginx.conf * Change dbraw for dbquery
@@ -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,
@@ -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 {