<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 1:27 PM, Jonathan Simowitz via nginx <span dir="ltr"><<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I would like to define an upstream block with a number of servers and utilize the hash directive to choose a particular server dependent on the request. There is a chance that the chosen server could fail and so I would also like to configure a backup server to handle the request in this case. If I define an additional server in this upstream and declare it as backup will it handle the request if the hash-chosen server fails as defined by my proxy_next_upstream directive?</div></div></blockquote><div><br></div><div>Have you had a look at the 'backup' parameter of <a href="http://nginx.org/en/docs/http/ngx_http_upstream_module.html#server">http://nginx.org/en/docs/http/ngx_http_upstream_module.html#server</a>? Sounds like exactly what you need.</div></div><br></div></div>