Re: Reverse proxy that forward requests to ALL upstream servers?

2017-06-04 Thread Yongtao You via nginx
body{font-family:Helvetica, Arial;font-size:13px;} On 4 June 2017 at 11:44:41, Yongtao You via nginx (nginx@nginx.org) wrote: Hi, I have arather special requirement. I need to setup a reverse proxy withmultiple upstream servers, and whenever a POST request comes in, Iwant NGINX to forwar

Reverse proxy that forward requests to ALL upstream servers?

2017-06-03 Thread Yongtao You via nginx
Hi, I have a rather special requirement. I need to setup a reverse proxy with multiple upstream servers, and whenever a POST request comes in, I want NGINX to forward the request to ALL the upstream servers. And the response code will be the highest (worst) one among all responses from the upstr

Re: Conflict between form-input-nginx-module and nginx-auth-request-module?

2017-03-14 Thread Yongtao You via nginx
Thanks! On Monday, March 13, 2017 9:38 PM, Maxim Dounin wrote: Hello! On Sat, Mar 11, 2017 at 05:13:38AM +, Yongtao You via nginx wrote: > To answer my own question, even though I still don't see why it has anything > to do with the auth-request module, but the reas

Re: Conflict between form-input-nginx-module and nginx-auth-request-module?

2017-03-10 Thread Yongtao You via nginx
know enough to understand the ramification of my change, even though it seems to fixed my immediate problem. Any insights will be greatly appreciated. Thanks.Yongtao On Thursday, March 9, 2017 8:58 PM, Yongtao You via nginx wrote: Hi, I was able to get both form-input-nginx-module

Conflict between form-input-nginx-module and nginx-auth-request-module?

2017-03-09 Thread Yongtao You via nginx
Hi, I was able to get both form-input-nginx-module and nginx-auth-request-module work fine, individually, with nginx-1.9.9. Putting them together, and the HTTP POST request just timeout (I never got any response back). Any one had any experience using both of them in the same location block? Tha

Re: Injecting Set-Cookie in Reverse Proxy?

2016-11-19 Thread Yongtao You via nginx
I was able to do this with the "headers more" module. Thanks!Yongtao On Saturday, November 19, 2016 4:22 PM, Yongtao You via nginx wrote: Hi, I'm setting up a reverse proxy to my backend service as follows: server {    location / {         auth_request /auth;        erro

Injecting Set-Cookie in Reverse Proxy?

2016-11-19 Thread Yongtao You via nginx
Hi, I'm setting up a reverse proxy to my backend service as follows: server {    location / {         auth_request /auth;        error_page 401 =302 /login;         proxy_pass http://backend/;        add_header Set-Cookie "my=xyz"; # Can I add this in the response from backend?    }} I would like

Two servers, one sign-in page?

2016-11-15 Thread Yongtao You via nginx
Hi, I'm new to Nginx. I'm trying to configure Nginx as a reverse proxy to 2 backend services, as follows (see below). The backend1 server is already password protected, but backend2 is not. I'm trying to route backend2 sign-in to backend1 login page. The only thing that is not working is the fol