Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
Required, but never shown