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/mailman/listinfo/nginxby techgarry75 - Nginx Mailing List - English
Hi, > On Friday, 9 May 2014 12:36 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > The $args variable is "arguments in the request line", see http://nginx.org/r/$args. It is not expected to contain any data from POST request body. Firstly thank you for your quick response. We need to proxy a specific request eg. when feedid=293634 and the request mby techgarry75 - Nginx Mailing List - English
Hi, The proxying of GET requests on $args i.e. feedid=293634 goes to server2 properly. But proxying of POST requests on $args i.e. feedid=293634 always goes to server1 instead of server2. Following is configuration... 1. /etc/nginx/nginx.conf contains user nginx; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { incby techgarry75 - Nginx Mailing List - English
Hi, The proxying of GET requests on $args i.e. feedid=293634 goes to server2 properly. But proxying of POST requests on $args i.e. feedid=293634 always goes to server1 instead of server2. Following is configuration... 1. /etc/nginx/nginx.conf contains user nginx; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_cby techgarry75 - Other discussion
![]() |
![]() |
![]() |
![]() |
|