Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx Bad Gateway

Hi I'm trying to move my old dev environment to a new machine. However I keep getting "bad gateway errors" from nginx. From nginx's errorlog:

*19 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: ~(?<app>[^.]+).gp2, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "backend.gp2:5555"

Does anyone know why this is?

Thanks!

like image 1000
Thomas K Avatar asked Sep 05 '11 16:09

Thomas K


2 Answers

Turned out that PHP-fpm was not running

like image 80
Thomas K Avatar answered Oct 11 '22 16:10

Thomas K


Looks like your upstream host at 127.0.0.1:9000 is not accepting connections. Is the upstream process working?

like image 20
jvc26 Avatar answered Oct 11 '22 16:10

jvc26