【问题标题】:nginx gateway timeout after 1minutes 20 seconds1 分 20 秒后 nginx 网关超时
【发布时间】:2012-09-24 10:34:43
【问题描述】:

我的 nginx 设置是这样的:

server {
    listen   80;
    server_name websitenamne.in www.websitename.in;

    root /root/path;

    location /static {
    }

location / {
    proxy_pass http://localhost:8003/;
    proxy_connect_timeout 3600;
    send_timeout 3600;
    proxy_read_timeout 3600;
    include /etc/nginx/proxy_params;
}

# what to serve if upstream is not available or crashes
error_page 500 502 503 504 /static/50x.html;
}

在上面的位置/,我添加了这些东西:

    proxy_connect_timeout 3600;
    send_timeout 3600;
    proxy_read_timeout 3600;

但仍然 nginx 发送网关超时错误。我该如何解决这个问题?

【问题讨论】:

    标签: nginx timeout


    【解决方案1】:

    通常无法将连接超时设置为超过操作系统重试 SYN 数据包传输的时间,通常为 75 秒,如 nginx docs 中所示。

    【讨论】:

      猜你喜欢
      • 2013-01-02
      • 2012-09-28
      • 2023-03-23
      • 2015-10-12
      • 1970-01-01
      • 2011-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多