上传文件 nginx 413错误
2015-12-31 10:38
681 查看
nginx : 413 Request Entity Too Large
上传文件过程发生413 Request Entity Too Large错误,翻译为请求实体过大,断定为nginx限制了请求体大小,翻看nginx文档发现default: client_max_body_size 1m
default: client_max_body_size 1m
context: http, server, location
Directive assigns the maximum accepted body size of client request, indicated by the line
If size is greater the given one, then the client gets the error "Request Entity Too Large" (413).
It is necessary to keep in mind that the browsers do not know how to correctly show this error.
果断打开nginx/conf/nginx.conf,在http模块中增加 client_max_body_size 10m;
别忘记后面的分号
nginx/sbin/nginx -s reload
OK,问题解决;
上传文件过程发生413 Request Entity Too Large错误,翻译为请求实体过大,断定为nginx限制了请求体大小,翻看nginx文档发现default: client_max_body_size 1m
client_max_body_size
syntax: client_max_body_size sizedefault: client_max_body_size 1m
context: http, server, location
Directive assigns the maximum accepted body size of client request, indicated by the line
Content-Lengthin the header of request.
If size is greater the given one, then the client gets the error "Request Entity Too Large" (413).
It is necessary to keep in mind that the browsers do not know how to correctly show this error.
果断打开nginx/conf/nginx.conf,在http模块中增加 client_max_body_size 10m;
别忘记后面的分号
nginx/sbin/nginx -s reload
OK,问题解决;
相关文章推荐
- nginx
- Nginx和Nginx+的比较(上)
- Nginx负载均衡监测节点状态
- yum install nginx
- nginx 无法访问
- yum 安装 nginx
- 7.zabbix学习笔记:zabbix监控nginx
- Nginx配置性能优化的方法
- Nginx配置参数说明
- Linux Nginx配置nginx.conf效率很高
- nginx+php-fpm访问报错,显示access denied
- Nginx负载均衡配置实例详解
- IE下 c00ce56e 错误竟然是nginx 字符设置的问题
- Centos7.0下命令行模式安装Nginx
- Nginx应对Permission denied和File not found的配置
- Nginx配置文件nginx.conf中文详解
- librtmp rtmpdump nginx-rtmp-moldue
- apache与nginx的优缺点
- Nginx服务器中414错误和504错误的配置解决方法
- nginx upstream timed out (110: Connection timed out) while reading response header from upstream