Nginx bad gateway and connection errors

Posted by r2b2 on Server Fault See other posts from Server Fault or by r2b2
Published on 2012-12-13T23:31:25Z Indexed on 2012/12/14 11:06 UTC
Read the original article Hit count: 211

Filed under:

I've followed this tutorial for a basic installation of nginx.

I always get bad gateway errors and when i look at the logs i see :

[error] 3226#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client

Here is my nginx.conf and contents of my sites-available/defaults

nginx.conf, defaults

I am also seeing this error :

conflicting server name "explorable.com" on 0.0.0.0:80, ignored

I am using Ubuntu 12.04, PHP5-FPM

Thank you!

© Server Fault or respective owner

Related posts about nginx