connect() failed (111: Connection refused) while connecting to upstream
francis at daoine.org
Mon Dec 3 20:21:56 UTC 2012
On Mon, Dec 03, 2012 at 03:08:09PM -0500, Gallitin wrote:
> Can't figure out why I keep getting 502 bad gateway nginx error.
Can your nginx access the server you have configured it to?
> 2012/12/03 19:30:21 [error] 20650#0: *939328 connect() failed (111:
> Connection refused) while connecting to upstream, client: 22.214.171.124,
> server: demo.domain.com, request: "GET /assets/js/msgFBmodal.js HTTP/1.1",
> upstream: "http://126.96.36.199:7080/assets/js/msgFBmodal.js", host:
> "demo.domain.com", referrer: "http://demo.domain.com/register/user_profile"
What do you get when you do
curl -i http://188.8.131.52:7080/assets/js/msgFBmodal.js
from the nginx server? (That's not exactly the same as nginx would do,
but the error message should be instructive.)
Francis Daly francis at daoine.org
More information about the nginx