subrequest failover

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

I'm also having strange issue with backup statement. Here's my config
upstream test {
  server backup;

upstream proxy {
#  server 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;
It shows no errors on nginx -t run but as I uncomment "server
backup;" line it outputs
[emerg]: invalid parameter "backup" in /etc/nginx/sites-enabled/site:8
configuration file /etc/nginx/nginx.conf test failed

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:,114123,130885#msg-130885

More information about the nginx mailing list