nginx上传文件超过限制大小、响应超时、反向代理请求超时等问题解决

1、文件大小超过限制

相关配置:

client_max_body_size:

|----------|----------------------------------|
| Syntax: | client_max_body_size size; |
| Default: | client_max_body_size 1m; |
| Context: | http, server, location |

2、连接超时:

proxy_read_timeout:

| Syntax: | proxy_read_timeout time; |
| Default: | proxy_read_timeout 60s; |

Context: http, server, location

定义从代理服务器读取响应的超时时间。超时仅在两个连续的读取操作之间设置,而不是针对整个响应的传输。如果代理服务器在此时间内没有传输任何内容,则连接将关闭。

fastcgi_connect_timeout:

| Syntax: | fastcgi_connect_timeout time; |
| Default: | fastcgi_connect_timeout 60s; |

Context: http, server, location

定义与FastCGI服务器建立连接的超时时间。应该注意,此超时通常不能超过75秒。

fastcgi_send_timeout:

| Syntax: | fastcgi_send_timeout time; |
| Default: | fastcgi_send_timeout 60s; |

Context: http, server, location

设置向FastCGI服务器传输请求的超时时间。超时仅在两个连续的写入操作之间设置,而不是针对整个请求的传输。如果FastCGI服务器在此时间内未收到任何内容,则连接将关闭。

fastcgi_read_timeout:

| Syntax: | fastcgi_read_timeout time; |
| Default: | fastcgi_read_timeout 60s; |

Context: http, server, location

定义从FastCGI服务器读取响应的超时时间。超时仅在两个连续的读取操作之间设置,而不是针对整个响应的传输。如果FastCGI服务器在此时间内没有传输任何内容,则连接将关闭。

相关推荐
孙克旭_3 小时前
PXE_Kickstart_无人值守自动化安装系统
linux·运维·自动化
π大星星️5 小时前
HAProxy + Keepalived + Nginx 高可用负载均衡系统
运维·nginx·负载均衡
IT专业服务商6 小时前
联想 SR550 服务器,配置 RAID 5教程!
运维·服务器·windows·microsoft·硬件架构
Johny_Zhao7 小时前
K8S+nginx+MYSQL+TOMCAT高可用架构企业自建网站
linux·网络·mysql·nginx·网络安全·信息安全·tomcat·云计算·shell·yum源·系统运维·itsm
专注代码七年8 小时前
在Windows 境下,将Redis和Nginx注册为服务。
windows·redis·nginx
UpUpUp……9 小时前
Linux--JsonCpp
linux·运维·服务器·c++·笔记·json
xixingzhe29 小时前
Nginx 配置多个监听端口
服务器·前端·nginx
Clockwiseee9 小时前
文件上传总结
运维·服务器·学习·文件上传
liyi_hz20089 小时前
O2OA(翱途)开发平台系统安全-用户登录IP限制
运维·服务器·网络·o2oa开发
武汉格发Gofartlic10 小时前
FEKO许可证的安全与合规性
大数据·运维·安全