android文件上传413 nginx [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes
2015-01-28 16:45
459 查看
问题描述:
android 图片文件上传服务器返回 413
ios 上传正常
排查:
# whereis nginx
# vi /etc/nginx/nginx.conf
查看日志存放地址
# cat /var/log/nginx/hiad.error.log
nginx [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes
2015/01/28 10:36:07 [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes,
client: 119.6.106.214, server: adtest.ihimi.net, request: "POST /wxkmsvc/dataService?app=mobile&controller=upload&action=upload HTTP/1.1", host: "。。。。。
解决方法:
修改/etc/php.ini 中的upload_max_filesize=20M;post_max_size = 20M
nginx 配置修改:
在http{}里添加参数client_max_body_size 20M;
keepalive_timeout 的值根据情况修改。调整超时时间。
android 图片文件上传服务器返回 413
ios 上传正常
排查:
# whereis nginx
# vi /etc/nginx/nginx.conf
查看日志存放地址
# cat /var/log/nginx/hiad.error.log
nginx [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes
2015/01/28 10:36:07 [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes,
client: 119.6.106.214, server: adtest.ihimi.net, request: "POST /wxkmsvc/dataService?app=mobile&controller=upload&action=upload HTTP/1.1", host: "。。。。。
解决方法:
修改/etc/php.ini 中的upload_max_filesize=20M;post_max_size = 20M
nginx 配置修改:
在http{}里添加参数client_max_body_size 20M;
keepalive_timeout 的值根据情况修改。调整超时时间。
相关文章推荐
- 文件上传失败 -nginx报错 client intended to send too large body: 1331696 bytes
- nginx报错 client intended to send too large body: 1331696 bytes
- nginx报错 client intended to send too large body: 1331696 bytes
- Nginx错误:[error] 106793#0: *46318 client intended to send too large body: 3738202 bytes
- 解决nginx报错信息 client intended to send too large body: 1331696 bytes
- Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】
- nginx: client intended to send too large body
- client intended to send too large body
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题(报错 http 413 error)
- linux 使用nginx代理上传大文件 413 request entity too large
- nginx:413 Request Entity Too Large 及 修改 PHP上传文件大小配置
- nginx:413 Request Entity Too Large的处理办法--修改 PHP上传文件大小
- nginx:413 Request Entity Too Large 及 修改 PHP上传文件大小配置
- 解决上传文件时 nginx 413 Request Entity Too Large 错误
- nginx 上传文件 413 Request Entity Too Large问题的解决方法
- Nginx上传文件提示413 Request Entity Too Large
- nginx 上传文件出现413 Request Entity Too Large 的解决方法
- 上传文件失败 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- 安装wordpress,上传主题文件时候nginx出现:413 Request Entity Too Large
- Nginx 报错413 Request Entity Too Large 上传文件过大