connect() failed (111: Connection refused) while connecting to upstream

Francis Daly francis at daoine.org
Mon Dec 3 20:21:56 UTC 2012


On Mon, Dec 03, 2012 at 03:08:09PM -0500, Gallitin wrote:

Hi there,

> 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: 70.94.18.35,
> server: demo.domain.com, request: "GET /assets/js/msgFBmodal.js HTTP/1.1",
> upstream: "http://108.166.94.94: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://108.166.94.94: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.)

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list