Proxying POST requests for the given conditions

Hi,

For all POST requests to nginx.

We want to proxy_pass to http://192.168.1.1:8000 if test=1 or to
http://192.168.1.2:8080 if test=0

How to configure the above.

Thanks,
M. G.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs