I am trying to configure nginx to proxy_pass based on the POST / GET / PUT / DELETE parameter in my request.
I want proxy_pass before http://10.0.0.2:8000 if live=1 or http://10.0.0.2:8081 if live=0 .
I tried using if ($arg_live = "1") , but it only works for GET requests.
Thanks,
Pedro
source share