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: "server" directive is not allowed here error

2017-06-03 Thread Reinis Rozitis
> [emerg] 19968#0: "server" directive is not allowed here in > /usr/local/nginx/conf/sites-enabled/server.domain.tld-ssl:1 > > Googling the error, kept bring up results about the server directive being > inside an http directive, which I don’t obviously have or have a need for. I > would apprec

Re: Same cached objects, but different body_bytes_sent

2017-06-03 Thread Zhang Chao
Hi, Guilherme! The HTTP status code 499, which means client closed the connection before Nginx even sent one byte. As long as Nginx sent some bytes, 499 will not arise, and Nginx just record the code generated previously, also, i bet your log_format of your access_log is the default one provided

"server" directive is not allowed here error

2017-06-03 Thread Dino Edwards
Hello, I'm hoping someone can help me with this nginx config issue that I'm having. I can't seem to figure out what the problem is. If I set with the a location directive "location /" it works fine. However, I seem to be having an issue with modsecurity breaking one of my applications, so I fi