Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2012 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2768425 to your computer and use it in GitHub Desktop.
Save anonymous/2768425 to your computer and use it in GitHub Desktop.
2012/05/22 16:39:53 [error] 4169#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 101.212.223.50, server: qlimp.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8001/", host: "www.qlimp.com"
2012/05/22 16:39:54 [error] 4169#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 101.212.223.50, server: qlimp.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8001/favicon.ico", host: "www.qlimp.com"
2012/05/22 16:40:06 [info] 4169#0: *2 client prematurely closed connection while reading client request line, client: 101.212.223.50, server: qlimp.com
@Sidhartha03
Copy link

Have you solved this ? I am also getting the same error.

@droberts2013
Copy link

I had the same problem. In my case, the proxypass in the location block in nginx.conf did not point to the identifer defined in upstream. The corrected config is:

upstream mezzanine-example {
server 127.0.0.1:8000;
}

server {
...
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_pass http://mezzanine-example;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment