Nginx-Upstream-proxy next upstream-惊天大Bug

youzhengchuan nginx-forum at nginx.us
Thu May 31 14:55:11 UTC 2012


upstream backend {
     server flvdownload.ppserver.org.cn:80 max_fails=0;
     server flvstorage.ppserver.org.cn:80 backup;
}

server{
  ....
  location / {
    proxy_next_upstream error timeout invalid_header http_500 http_502
http_503 http_504;
    proxy_pass http://backend;
  }
}

#----------------------------------------------------------------------------------------

当upstream中backup域名“
flvstorage.ppserver.org.cn”解析结果为2个IP时候,“flvdownload.ppserver.org.cn”如果返回有异常可以成功proxy_pass到backup。
But:当upstream中backup域名“
flvstorage.ppserver.org.cn”解析结果为1个IP时候,backup无法使用,nginx会不断的请求“flvdownload.ppserver.org.cn”。

屡试不爽,就是不知道这是一个Bug吗?

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



More information about the nginx mailing list