Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
2016-12-23 09:20
495 查看
1、错误描述
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)


2、错误原因
上传文件时,利用localhost访问系统,不会出现这个问题;用域名访问这个系统时,出现这个问题,提示是:请求实体太大
由于Nginx反向代理服务器client_max_body_size默认值为1MB,而上传文件大于1MB,所以就出现这个错误
3、解决办法
打开Nginx反向代理服务器nginx.conf配置文件,修改client_max_body_size值
client_max_body_size 30M
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
2、错误原因
上传文件时,利用localhost访问系统,不会出现这个问题;用域名访问这个系统时,出现这个问题,提示是:请求实体太大
由于Nginx反向代理服务器client_max_body_size默认值为1MB,而上传文件大于1MB,所以就出现这个错误
3、解决办法
打开Nginx反向代理服务器nginx.conf配置文件,修改client_max_body_size值
client_max_body_size 30M
相关文章推荐
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- 上传文件失败 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- ajaxSubmit 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- 关于前台jsp页面Failed to load resource: the server responded with a status of 400 (Bad Request)
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- ajax 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- SprimgMVC:Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- ripple Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- springmvc Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- SrpingMVC==>Failed to load resource: the server responded with a status of 404(Not Found)