Nginx反向代理上传大文件报错(failed to load resource : net :: ERR_CONNECTION_RESET)
来源:互联网 发布:三菱伺服选型软件 编辑:程序博客网 时间:2024/06/06 01:51
Nginx反向代理上传大文件报错(failed to load resource : net :: ERR_CONNECTION_RESET)
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
正文
当使用Nginx反向代理上传大文件报错
failed to load resource : net :: ERR_CONNECTION_RESET
经查是Nginx的配置问题。
使用
client_max_body_size size;
用于配置请求中Body的最大可允许值。size的单位为M,Nginx默认的设置是1m。数值按需自行设置即可。例如限制为1G:
client_max_body_size 1024m;
此配置可放在 http | server | location 任一处,对应不同的作用范围。
附
官方文档说明:
Syntax: client_max_body_size size;Default: client_max_body_size 1m;Context: http, server, location
Sets 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.
0 0
- Nginx反向代理上传大文件报错(failed to load resource : net :: ERR_CONNECTION_RESET)
- 使用video.js文件报错:Failed to load resource: net::ERR_FILE_NOT_FOUND的解决办法
- Chrome Failed to load resource: net::ERR_CACHE_MISS
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING
- Failed to load resource: net::ERR_CACHE_MISS
- Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
- Failed to load resource: net::ERR_CONNECTION_REFUSED
- nc6报错 Failed to load ESAPI.properties as a classloader resource.
- nc6报错 Failed to load ESAPI.properties as a classloader resource.
- nc6报错 Failed to load ESAPI.properties as a classloader resource.
- 微信小程序Failed to load resource: net::ERR_NAME_NOT_RESOLVED问题解决办法
- openlayers出现Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME这个问题
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING的一次修复
- 上传文件失败 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- SpringBoot报错(五) Failed to load ApplicationContext
- ajax 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- chrome报错Not allowed to load local resource:
- nginx1.9 在centos7.2下报Failed to restart nginx.service: Unit nginx.service failed to load: No 。。错误
- 《Effective C++》学习笔记——条款39
- C++ 红黑树
- Multism14 下载及安装
- iOS 之 OBJECTC 调用C、OBJECTC调用C++
- 【PAT】1035. 插入与归并(25)
- Nginx反向代理上传大文件报错(failed to load resource : net :: ERR_CONNECTION_RESET)
- Git
- 初学Phaser.js之碰撞检测
- LeetCode:2 Add Two Numbers
- NLTK提取全文词干
- processing 常用代码片段(持续更新)
- 2016寒假训练——寒假结束
- html之radio是否被选中的判断------radio只是input的type属性
- 在ubuntu 14.04上安装libqglviewer-qt4-dev包