`
niulanshan
  • 浏览: 563859 次
文章分类
社区版块
存档分类
最新评论

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

 
阅读更多

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
分享到:
评论

相关推荐

    vue打包npm run build时候界面报错的解决

    用coding-pages打开后显示Failed to load resource: the server responded with a status of 404 (Not Found), 解决方案: 方案一: 找到config里的index.js,打开修改assetsPublicPath 为“./” 方案二: 或者把...

    编译原理中的一部分答案

    - **解析**:每个文法都生成了不同的语言,例如 `L1` 生成的是以 `ab` 结尾的含有 `a` 和 `c` 的所有字符串。 ### 第三章知识点概览 #### 六、自动机 自动机是计算理论中的一个模型,用于描述输入字符串的处理...

    Ajax报错400的参考解决办法

    在使用Ajax进行数据交互时,有时会遇到"400 Bad Request"的错误,这通常意味着服务器无法理解客户端(浏览器)发送的请求。在这种情况下,错误的根本原因通常是前端发送的数据格式不符合后端接口的预期。这里我们将...

    mobile-select-area:手机联动选择地区

    移动选择区域 手机联动选择地区效果图如下: 例子见[DEMO]( ) 或( ) npm install mobile-select-area --save-dev 用法 ...或者 打开start.bat 注:依赖于 ...meta name="viewport" content="width=device-width, ...

    node.js中的favicon.ico请求问题处理

     server.on(“request”,function(req,res){5 console.log(req.url);  res.end();  });  server.listen(1337,”127.0.0.1″); 这样的代码在请求时会出现两条请求: 第一条时URL地址为用户输入的客户端请求的...

    iframe中页面显示不全1

    在网页设计中,`<iframe>`元素是一种非常实用的工具,它允许我们在一个网页中嵌入另一个网页,比如展示文档、视频或者地图等。当遇到"Iframe中页面显示不全"的问题时,通常是由于iframe的尺寸设置不当或者与被嵌入...

    数据请求的时候遇到 Status code: 431 Request Header Fields Too Large

    当在数据请求过程中遇到“Status code: 431 Request Header Fields Too Large”时,这通常意味着请求头(Header)中的字段过大,超过了服务器能够接受的限制。这个错误可能发生在前端或后端,具体取决于请求的实现...

    小程序server请求微信服务器超时的解决方法

    今天有同学在测试小程序的过程中,发现一个问题,调用 微信官方的服务端接口超时 ,比如这个接口,https://api.weixin.qq.com/sns/jscode2session ,因为我们小程序登录的时候,会在自己server端调用微信的API,这个...

    英语翻译常用词组.doc

    例句:The company failed due to lack of funding. 35. nothing but 只不过是:表示某个事情或概念只不过是某种状态或趋势。 例句:The company's success is nothing but a result of hard work. 36. by means ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    In earlier revisions, the error status light was cleared after a VsSetWavelength() call failed, so the user did not see the light turn red to alert that an error had occurred. This has been fixed in ...

    The Start-up J Curve (.epub)

    Author Howard Love calls this pattern the start-up J Curve: The toughest part of the endeavor is the time between the actual start of a new business and when the product and model are firmly ...

    创建项目时VUE报错的解决办法

    Error: Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". This can be caused by a missing file extension in the URL or an incorrect MIME type configured...

    The status and impact of prereferral intervention: "We need a better way to determine success"

    The status and impact of prereferral intervention: "We need a better way to determine success" P.~yCholoRy in the Schools Volume 31. October 1994 THE STATUS AND IMPACT OF PREREFERRAL INTERVENTION...

    Programming Active Server Pages(CHM).rar

    When Microsoft first responded to the demand for Internet development tools, products were primitive by any stretch of the imagination. In fact, Web developers joked that their favorite development ...

    Human Insula in Emotion

    The posterior insula showed auditory responses that resemble those observed in Heschl’s gyrus, whereas the anterior insula (AI) responded to the emotional contents of the auditory stimuli in a ...

    Reporting with Microsoft SQL Server 2012 报表开发指南

    Reporting with Microsoft SQL Server 2012 报表开发指南 PDF版 Creating reports is natural in any business, and there are many Microsoft products for ... Microsoft responded to this need with Power View.

    GRE阅读备考试题:动荡的时代背景.docx

    They offer a critique of the economic conditions that led to thesocial unrest of the time. E. They illustrate the effects of the Industrial Revolution on ruralEnglish communities. 7. How might the ...

    Incident Response and Computer Forensics 2nd ed.7z

    We have witnessed lack of education curtail too many efforts to apprehend external and internal attackers. We have also witnessed computer forensics evolve from an esoteric skill to a propri- etary ...

Global site tag (gtag.js) - Google Analytics