Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
December 03, 2012 03:24PM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Gallitin December 03, 2012 03:08PM

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

Jonathan Matthews December 03, 2012 03:20PM

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

Gallitin December 03, 2012 03:20PM

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

Francis Daly December 03, 2012 03:24PM

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

Gallitin December 03, 2012 03:29PM

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

Francis Daly December 03, 2012 03:46PM

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

Gallitin December 03, 2012 04:32PM

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

Valentin V. Bartenev December 03, 2012 04:56PM

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

Gallitin December 03, 2012 04:56PM

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

Jonathan Matthews December 03, 2012 05:02PM

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

Gallitin December 03, 2012 05:03PM

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

Jonathan Matthews December 03, 2012 05:20PM

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

Francis Daly December 03, 2012 07:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 214 on March 20, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready