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
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
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