Nginx 502 Bad Gateway
-
@Guiri Of course:
2014/07/09 01:13:17 [error] 8494#0: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4567/", host: "huoshaolin.com"
2014/07/09 01:13:17 [error] 8494#0: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:4567/favicon.ico", host: "huoshaolin.com"
2014/07/09 01:17:47 [error] 8494#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4567/", host: "www.huoshaolin.com"
2014/07/09 01:17:47 [error] 8494#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:4567/favicon.ico", host: "www.huoshaolin.com"
2014/07/09 01:17:50 [error] 8494#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4567/", host: "www.huoshaolin.com"
2014/07/09 01:17:50 [error] 8494#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:4567/favicon.ico", host: "www.huoshaolin.com"
2014/07/09 01:17:52 [error] 8494#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4567/", host: "www.huoshaolin.com"
2014/07/09 01:17:53 [error] 8494#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 113.109.53.7, server: huoshaolin.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:4567/favicon.ico", host: "www.huoshaolin.com"
2014/07/09 01:26:43 [error] 8494#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 107.178.200.63, server: huoshaolin.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4567/", host: "www.huoshaolin.com"
2014/07/09 01:26:45 [error] 8494#0: *40 connect() failed (111: Connection refused) while connecting to upstream, client: 107.178.200.63, server: huoshaolin.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:4567/favicon.ico", host: "www.huoshaolin.com" -
-
@Hentai, glad to hear it was resolved.
@julian, they're on the same server, so I have no idea what the issue was. Only variation from the docs was running as root, not just a sudo user.I'm just now getting to play with the platform in full swing, and it certainly seems promising. It has all the important aspects of a social experience, without the clutter.
I have only a few suggestions, but I hear they drop in 0.5, so I can't wait
-
Oddly enough this fixed it for me to, hopefully those searching for a** fix to nginx 502 bad gateway with NodeBB** come across this solution as it took me some time. I didn't think it would work because it was on the same server but it did.
proxy_pass http://mydomain.com:4567/;