Nginx giving 502 Bad Gateway in random intervals

darshan.choudhary nginx-forum at
Tue May 14 13:34:01 UTC 2013

I am getting a 502 Bad Gateway on my server after any random intervals.

If i run the following code the server starts working again:

/usr/bin/spawn-fcgi -a -p 9000 -u www-data -g www-data -f
/usr/bin/php5-cgi -P /var/run/

I have tried every possible way available on the internet.

Can anyone help I am kinda newbie with server configs and stuff..!! 


Posted at Nginx Forum:,239181,239181#msg-239181

More information about the nginx mailing list