<div dir="ltr">I suspect​ that the "backup" directive is not compatible with the upstream hash-based methods, only with the round-robin method. I found this old post that explains an alternate method of achieving a backup in this situation:<div>

<br></div><div><a href="http://nginx.2469901.n2.nabble.com/upstream-ip-hash-and-backup-td6534435.html">http://nginx.2469901.n2.nabble.com/upstream-ip-hash-and-backup-td6534435.html</a><br></div><div><br></div><div>Cheers,</div>

<div>Nicholas Sherlock</div></div>