nginx:连接上游时没有活上游
在站点页面之间切换时显示502错误的网关错误,而在主页面上的某些时候会显示错误网关错误,但是只有在另一个页面redirect到主页面时才会出现错误。 它发生了一些JavaScript文件 两个上游configuration的负载均衡php1 php2都是apache服务器。 当我检查错误日志我喜欢: no live upstreams while connecting to upstream [error] 27212#0: *314 no live upstreams while connecting to upstream, client: ip_address , server: example.com, request: "GET / HTTP/1.1", upstream: "http://example.com", host: "example.com", referrer: "http://example.com/mypages/" 这是负载平衡服务器configuration upstream example.com { # ip_hash; server php01 max_fails=3 fail_timeout=15s; server php02 max_fails=3 fail_timeout=15s; } server { listen […]