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
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