I have a running nginx server with the following location config:
location /test_args/ {
return 200 $arg_z$arg_x$arg_y;
}
So I'm trying to send z, x and y values in response.
When running http request
curl http://127.0.0.1:8090/test_args/?z=12&x=34&y=56
I get only 12 in response. This is a value of the first parameter z. Other parameters are omitted.
I expect the response to be 123456
How do I make nginx read multiple URL parameters?
$request_urito see the current url.$request_urireturns everything before first&sign. Here's the output:/test_args/?z=12&differently. see this answer stackoverflow.com/a/10691154/3150943