Nginx:504错误_Bad Gateway的解决方法
11
·
浏览器控制台输出:Failed to load resource: the server respondedwith a status of 504 (Gateway Time-out
可通过查看Nginx 中的logs找到问题所在(需要修改nginx.conf的顶上#error_log logs/error.log info 开启logs 然后重启Ng):
发现异常所在
2017/05/31 19:03:13 [error] 22358#0: *1upstream timed out (110: Connection timed out) while reading response headerfrom upstream, client: 223.223.204.244, server: localhost, request: "GET/platform/totalData HTTP/1.1", upstream:"http://10.163.171.188:94/platform/totalData", host:"rep.jinrongboshi.com", referrer: "http://rep.jinrongboshi.com/page/left.jsp"
问题解决:
location / {
...
proxy_read_timeout 150; #重点
...
}
在nginx.conf的location中添加proxy_read_timeout 150;
更多推荐
已为社区贡献1条内容
所有评论(0)