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:
http://nginx.2469901.n2.nabble.com/upstream-ip-hash-and-backup-td6534435
Hi,
I am getting below error while loading nginx configuration file.
2014/08/10 10:06:33 [emerg] 816#0: invalid parameter "backup" in
/etc/nginx/nginx.conf:39
Below is the configuration file :-
upstream backend {
hash $key2 consistent;
server 10.0.0.22:8080;