nginx 客户端请求大小限制
来源:互联网 发布:阿里云备案承诺书模板 编辑:程序博客网 时间:2024/04/30 05:53
SYNTAX: client_max_body_size size;DEFAULT: client_max_body_size 1m;CONTEXT: http, server, locationSets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.
今天上传图片,发现老出错,也没超过程序所设的大小限制,为啥就不行。后来突然想起来以前用nginx接tomcat也出现过,后来证明是nginx默认设置导致的。
在server节点下增加 client_max_body_size 4m; 搞定。nginx 默认限制是1m
0 0
- nginx 客户端请求大小限制
- nginx的请求限制
- POST请求大小不限制?
- Nginx 限制 IP 请求数
- nginx设置请求body大小
- tomcat nginx默许的post大小限制
- tomcat nginx默许的post大小限制
- 【Nginx】上传文件的大小限制
- nginx+php 修改文件上传大小限制
- Tomcat限制post请求文件上传大小
- nginx手册---nginx如何处理客户端请求
- CXF客户端配置请求超时限制
- CXF客户端配置请求超时限制
- nginx限制请求数ngx_http_limit_req_module模块
- Nginx模块 ngx_http_limit_req_module 限制请求速率
- nginx限制请求数(ngx_http_limit_req_module)模块
- Nginx 限制连接数与请求数
- nginx限制请求数ngx_http_limit_req_module模块
- sizeof(数组名)和sizeof(指针)
- 一致性哈希算法
- 65. Symmetric Tree
- Catch That Cow
- vector:
- nginx 客户端请求大小限制
- atomic 学习记录
- 请求转发与请求重定向的区别
- 通过ValueAnimator实现点击展开和关闭的效果
- Layer::init() 到底做了什么
- 【Python】使用pypy加速
- 化繁为简,无需后端。巧用Yql+rss,搭建我的个人网站
- Delphi 调用Codesoft打印条码
- 接口测试-postman+newman+jenkins组合