php + 七牛上传遇到 nginx 413 nginx 413 Request Entity Too Large
来源:互联网 发布:富其软件用法 编辑:程序博客网 时间:2024/04/28 19:08
nginx 413这个问题是老生长谈了,默认nginx只能传输几兆的数据,我们的gif动不动就5M+,所以需要调整下
nginx调整
# http section下面加入client_max_body_size 1025m;# 重启service nginx restart
php
# file /etc/php.inipost_max_size = 1025Mupload_max_filesize = 1025M# 重启php-fpmservice php-fpm restart
如果有php程序,里面有限制也需要改,比如我们的程序
// Check file size// if ($_FILES["fileToUpload"]["size"] > 500000) { // 默认是500KBif ($_FILES["fileToUpload"]["size"] > 1025*1024*1024) { echo "Sorry, your file is too large."; $uploadOk = 0;}
0 0
- php + 七牛上传遇到 nginx 413 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解决方法
- 413 Request Entity Too Large(nginx)
- nginx 出现413 Request Entity Too Large
- nginx:413 Request Entity Too Large 及 修改 PHP上传文件大小配置
- nginx:413 Request Entity Too Large的处理办法--修改 PHP上传文件大小
- spring boot 和 nginx的上传资源大小配置(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”错误解决方法
- unit 10
- oracle 创建分区表,增(追)加分区
- 九度 oj 题目1076:N的阶乘
- javascript中的函数(Function)
- 安卓手势识别
- php + 七牛上传遇到 nginx 413 nginx 413 Request Entity Too Large
- POJ3278:Catch That Cow(BFS)
- [LeetCode]442 Find All Duplicates in an Array
- Java 中方法的重载
- 2017-01-10 笔记 P2P网络 集中式网络与分散式网络
- unit 11
- Redis Sentinel(哨兵):集群解决方案
- 【eclipse】eclipse插件之Findbugs、Checkstyle、PMD安装及使用
- LED框架学习