华拓科技网
您的当前位置:首页nginx 502错误

nginx 502错误

来源:华拓科技网

[root@yaho nginx]# curl localhost/i.php

<html>

<head><title>502 Bad Gateway</title></head>

<body bgcolor="white">

<center><h1>502 Bad Gateway</h1></center>

<hr><center>nginx/1.4.4</center>

</body>

</html>



原因:问题出在php-fpm.conf  配置文件里,把里面的 listen =/tmp/php-abc.sock和 nginx.conf里  fastcgi_pass unix:/tmp/php-abc.sock;不一致,修改一致解决问题.






      本文转自笔下生辉  51CTO博客,原文链接:http://blog.51cto.com/752030200/1723396,如需转载请自行联系原作者


因篇幅问题不能全部显示,请点此查看更多更全内容