nginx 上传大文件出现 504 gateway time-out

在http{}片段下添加如下配置:单位秒

proxy_connect_timeout       600;
proxy_send_timeout          600;
proxy_read_timeout          600;
send_timeout                600;

还是超时修改以下配置项:

sendfile on; 上传加速
keepalive_timeout 1800; 默认链接时间是65s

 

posted on 2018-10-10 17:33  花少灬  阅读(6353)  评论(1编辑  收藏  举报

导航