Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
December 03, 2012 07:00PM
On Mon, Dec 03, 2012 at 04:32:04PM -0500, Gallitin wrote:

Hi there,

> Sorry for the grammar error.

No worries. Once it is clear what works and what fails, we can see what
to do next.

> If I do curl -i http://domain.com/assets/js/msgFBmodal.js
> it returns the code from the msgFBmodal.js page. Yet if I hit the page via
> browser I still receive the gateway error.

So, include all details each time, even if it looks repetitive.

Yes or no: "domain.com" is your nginx-hosted web site, and resolves to
your nginx server?

From a shell on the nginx server, what does

curl -i http://domain.com/assets/js/msgFBmodal.js

return? HTTP 200 and the content of the msgFBmodal.js file, or something else?

From a shell on your PC, the same machine your browser runs from, what does

curl -i http://domain.com/assets/js/msgFBmodal.js

return? HTTP 200 and the content of the msgFBmodal.js file, or something else?

From your browser, what do you see when you try to access

http://domain.com/assets/js/msgFBmodal.js

? The content of the msgFBmodal.js file, or something else?


> The nginx.conf file is:

<snip>

> # '$status $body_bytes_sent "$http_referer" '
> # '"$http_user_agent" "$http_x_forwarded_for"';
> "nginx.conf" 40L, 847C

Unfortunately, that doesn't show the configuration. It only shows the top
half of the main file; I suspect it will "include" some other files. What
matters is the configuration of the server{} block that handles domain.com.

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: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready