Created
May 22, 2012 11:16
-
-
Save anonymous/2768425 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
Have you solved this ? I am also getting the same error.