subrequest failover

reaper nginx-forum at nginx.us
Thu Sep 16 13:29:21 MSD 2010


I'm also having strange issue with backup statement. Here's my config
[code]
upstream test {
  server 10.0.0.1;
  server 10.0.0.2 backup;
}

upstream proxy {
  server 94.1.1.1;
#  server 95.1.1.1 backup;
}

server {
  listen 80;
  server_name _;

  access_log off;

  location / {
    proxy_pass http://proxy;
#    proxy_pass http://test;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    client_max_body_size       100m;
    client_body_buffer_size    128k;
  }
}
[/code]
It shows no errors on nginx -t run but as I uncomment "server 95.1.1.1
backup;" line it outputs
[code]
[emerg]: invalid parameter "backup" in /etc/nginx/sites-enabled/site:8
configuration file /etc/nginx/nginx.conf test failed
[/code]


No errors in "upstream test" section. Why is that? Tried nginx 0.7.67-3
and 0.6.32-3 from debian packages.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,114123,130885#msg-130885




More information about the nginx mailing list