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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM