【发布时间】:2013-02-13 06:57:27
【问题描述】:
我尝试了以下建议:
How do I prevent a Gateway Timeout with FastCGI on Nginx
nginx.conf(http 部分 {} 内)
#prevent gateway timeout
client_header_timeout 1000000;
client_body_timeout 1000000;
send_timeout 1000000;
fastcgi_read_timeout 1000000;
但大约 60 秒后,我收到错误 504 网关超时。我们在 apache 前面有 nginxx,所以我不确定 apache 是否导致错误,但我们得到一个 504 网关超时,这显然来自 nginx
【问题讨论】:
-
您还需要增加
keepalive_timeout。