安装wordpress,上传主题文件时候nginx出现:413 Request Entity Too Large
来源:互联网 发布:人工智能汽车 编辑:程序博客网 时间:2024/06/05 23:50
使用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为允许最大上传的大小。
阅读全文
0 0
- 安装wordpress,上传主题文件时候nginx出现:413 Request Entity Too Large
- Nginx上传文件提示413 Request Entity Too Large
- nginx 出现413 Request Entity Too Large
- PHP CURL上传文件出现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错误解决方法
- quartz cron表达式
- jQuery事件
- 智能指针之scoped_ptr
- iOS核心动画学习
- 通过模拟火车售票窗口小Demo初识java多线程
- 安装wordpress,上传主题文件时候nginx出现:413 Request Entity Too Large
- Visual Studio Code启动项目
- table标签中设置td的边框线
- Day3:文件与文件系统的压缩与打包
- 崩溃问题查找方式-写文件
- 生成动态GIF的方法
- 【tensorflow学习】卷积神经网络CNN(mnist数据集)
- 微信小程序蓝牙通讯蓝牙模块demo
- jQuery Mobile 表单