小编Rob*_*Dee的帖子

从上游读取响应标头时上游过早关闭连接 502 Bad GateWay

nginx 正在杀死我.. 所以现在我有 502 Bad Gateway。错误日志说:

2016/10/12 17:39:53 [info] 3023#0: *464 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:443
2016/10/12 17:39:53 [info] 3023#0: *465 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:443
2016/10/12 17:39:55 [error] 3023#0: *459 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: local.beerhawk.co.uk, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "local.mydomain.co.uk"
Run Code Online (Sandbox Code Playgroud)

我的 ngninx conf 文件现在看起来像这样:

#user  RobDee;
worker_processes  auto;

#error_log  logs/error.log;
#error_log  logs/error.log  info;
pid        logs/nginx.pid; …
Run Code Online (Sandbox Code Playgroud)

php nginx mac-osx

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

mac-osx ×1

nginx ×1

php ×1