Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
2015-06-24 14:08
639 查看
Node应用,使用formidable处理文件上传,本地测试没有问题,部署到服务器上之后上传大文件浏览器收到以下错误信息:
原因是服务器使用Nginx做代理而限制了上传文件的大小,修改Nginx配置:
在location 下面增加client_max_body_size 100M;配置项,重启Nginx文件上传成功.
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
原因是服务器使用Nginx做代理而限制了上传文件的大小,修改Nginx配置:
location / { client_max_body_size 100M; proxy_pass http://node_app; }
在location 下面增加client_max_body_size 100M;配置项,重启Nginx文件上传成功.
相关文章推荐
- Hive Hue的导出XLS格式,数据不全
- iOS三种视图切换 (UITabBarController,UINavigationController,模态窗口)
- Direct UI 思想阐述
- requireJS官网学习(1)
- UICollectionViewController简单操作
- Convert boolean values to strings 'Yes' or 'No'.
- suid位,sgid位及setuid(),setgid()函数实测情况
- XCUIElementType API
- UITableView的上下滑动与自己添加的手势冲突
- poj2778 DNA Sequence(AC自动机+矩阵快速幂 )
- 比较height(),innerHeight(),outerHeight()和outerHeight(true)
- android.util.AndroidRuntimeException: requestFeature() must be called before adding content
- UIBezierPath 的理解 及使用
- Android API Guides - Activities - Fragments
- The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required
- GUI(主)线程与子线程之间的通信
- iOS-Core-Animation-Advanced-Techniques(七)
- iOS-Core-Animation-Advanced-Techniques(六)
- iOS-Core-Animation-Advanced-Techniques(三)
- iOS-Core-Animation-Advanced-Techniques(二)