您的位置:首页 > 产品设计 > UI/UE

Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

2016-12-23 09:20 686 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐