Proxying POST requests for the given conditions

2014-05-12 Thread M. G.
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. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org

Re: proxying of POST requests based on $args not working

2014-05-09 Thread M. G.
need to proxy a specific request eg. when feedid=293634 and the request method is POST. How can we achieve the same, if possible requesting an sample configuration for our reference. Thanks, M. G.___ nginx mailing list nginx@nginx.org http://mailman.n

proxying of POST requests based on $args not working

2014-05-08 Thread M. G.
name mysubdomain.domain.co.in; location / { proxy_pass http://server1; if ( $args ~ 'feedid=293634' ) { proxy_pass http://server2; } if ( $request_method = POST ) { set $test P; } if ( $args ~ 'feedid=293634' ) { set $test "${te