nginx 出现413 Request Entity Too Large问题的解决方法
来源:互联网 发布:西安淘宝代运营 编辑:程序博客网 时间:2024/05/01 17:05
nginx 出现413 Request Entity Too Large问题的解决方法
使用php上传图片(大小1.9M),出现 nginx: 413 Request Entity Too Large 错误。
根据经验是服务器限制了上传文件的大小,但php默认的文件上传是2M,应该不会出现问题。
打开php.ini,把 upload_max_filesize 和 post_max_size 修改为20M,然后重启。
再次上传,问题依旧,可以排除php方面的问题。
原来nginx默认上传文件的大小是1M,可nginx的设置中修改。
解决方法如下:
1.打开nginx配置文件 nginx.conf, 路径一般是:/etc/nginx/nginx.conf。
2.在http{}段中加入 client_max_body_size 20m; 20m为允许最大上传的大小。
3.保存后重启nginx,问题解决。
0 0
- nginx 出现413 Request Entity Too Large问题的解决方法
- nginx 出现413 Request Entity Too Large问题的解决方法
- nginx 出现413 Request Entity Too Large问题的解决方法
- nginx 出现413 Request Entity Too Large问题的解决方法
- nginx 出现413 Request Entity Too Large问题的解决方法
- nginx 出现413 Request Entity Too Large问题的解决方法
- nginx 出现413 Request Entity Too Large问题的解决方法 标签: nginxphpuploadrequesttoo large 2015-05-07 00:07 704
- Nginx出现“413 Request Entity Too Large”错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现“413 Request Entity Too Large”错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- Nginx出现413 Request Entity Too Large错误解决方法
- linux 目录与文件命令
- 一起学CC3200系列教程之中断优先级设置
- 让Tomcat自动加载文件
- 每天一个学习一个新的php函数(2) array_diff()/array_diff_key()/array_diff_assoc()
- 什么是金蝶WMS系统金蝶WMS系统功能,使用仓库WMS系统,金蝶WMS有什么好处
- nginx 出现413 Request Entity Too Large问题的解决方法
- ListView中getView的原理与解决多轮重复调用的方法
- Android自定义Cursor遇到的一个小问题
- div+css 定位浅析
- 对浏览器地址栏输入信息的初步理解
- JS的基础类型与引用类型
- [OC学习笔记]文件管理
- ora-01031:insufficient privileges解决方法总结
- javascript深入理解js闭包