Re: Nginx and conditional proxy_next_upstream directive

2016-02-23 Thread Tolga Ceylan
FYI, possible related issue on nginx-dev mail list: https://forum.nginx.org/read.php?29,264637,264637#msg-264637 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx and conditional proxy_next_upstream directive

2016-02-23 Thread dontknowwhoiam
Is this question to stupid or has nobody an answer on it? ;) I just think a POSTs are not idempotent and should never be repeated for a technical reason. Is there any change to configure nginx in a way to try the next upstream only if the first one really failed when using POST requests? Timed out

Nginx and conditional proxy_next_upstream directive

2016-02-11 Thread dontknowwhoiam
I want nginx to prevent trying the next upstream if the request is a POST request and the request just timed out. POSTs should only be repeated on error. I tried this config to implement it: if ($request_method = POST) { proxy_next_upstream error; } But this fails with: nginx: [emerg] "proxy_n