I have a cluster load balanced using nginx with 3 backend HTTP servers defined as the upstream servers. How can I configure nginx to failover to the next HTTP server in the cluster if one of the HTTP upstream servers throws an HTTP 500 error?


Set proxy_next_upstream to include http_500 as one of the values.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.