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 requests on one upstream could potentially still be processed by an application. Handing this requby dontknowwhoiam - Nginx Mailing List - English
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: "proxy_next_upstream" directive is not allowed here... I tried it within location context as weby dontknowwhoiam - Nginx Mailing List - English