nginx 出现413 Request Entity Too Large问题的解决方法 标签: nginxphpuploadrequesttoo large 2015-05-07 00:07 704
来源:互联网 发布:怎么加入淘宝类目群 编辑:程序博客网 时间:2024/04/27 08:01
nginx 出现413 Request Entity Too Large问题的解决方法
分类:
版权声明:本文为博主原创文章,未经博主允许不得转载。如需转载可私信或关注公众号fdipzone-idea与我联系。
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问题的解决方法 标签: 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错误解决方法
- 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错误解决方法
- 问题1
- Linux-字符设备-数据结构
- Scala_类
- Windows 10 & Visual Studio 2015 配置 Caffe
- python_类型转换
- nginx 出现413 Request Entity Too Large问题的解决方法 标签: nginxphpuploadrequesttoo large 2015-05-07 00:07 704
- Jquery操作checkbox复选框
- 19AWorld Football Cup
- winsows10下用ninja编译配置caffe
- Mysql 默认密码
- C/C++之读写文件
- cocos2d-x 在安卓平台上 pvr.gz 资源文件异常问题
- python文件定位读取
- 谈谈8年C++面向对象设计的经验体会