2

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?

mofoyoda
  • 695
  • 2
  • 10
  • 16

0 Answers0