例如:
代码如下:
http
{
......
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
......
}
也有可能是PHP代码不正确,比如SVN冲突等原因。
您可能感兴趣的文章:Nginx 502 bad gateway和Nginx 504 Gateway Time-out错误解决方法 错误解决办法Nginx 遇到502 Bad Gateway 自动重启的脚本代码为Nginx自定义404,502错误页面的方法解决Nginx + PHP(FastCGI)遇到的502 Bad Gateway错误解决Nginx + PHP(FastCGI)遇到的502 Bad Gateway错误