nginx:502使用node.js varnish和stunnel的时候坏了网关
我一直在关注这个教程 ,除了我的nginx设置,一切似乎都运行正常。 我的node.js应用程序在端口1337上运行,varnish在端口80上运行,443上的stunnel和8080上的nginx。 当我指定端口https://example.com:1337时,我可以正确地到达我的应用程序,但访问https://example.com时得到的是502 Bad Gateway错误。 这是我的nginx日志的输出: 2012/08/25 14:13:59 [error] 6049#0: *1 no live upstreams while connecting to upstream, client: 127.0.0.1, server: example.com, request: "GET / HTTP/1.1", upstream: "http://app_example/", host: "example.com" 2012/08/25 14:14:02 [error] 6049#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: example.com, request: "GET / HTTP/1.1", upstream: […]