首页 > 其他分享 >client intended to send too large body: 2274148 bytes

client intended to send too large body: 2274148 bytes

时间:2023-01-09 18:34:08浏览次数:40  
标签:body intended bytes send nginx client 2274148 too

client intended to send too large body: 2274148 bytes


 

问题现象

前端上传图片失败,nginx错误日志文件(/var/log/nginx/error.log)中的报错信息为:“client intended to send too large body: 2274148 bytes”。

 

解决方案

1)修改nginx配置文件

/etc/nginx/nginx.conf 中的 http{} 中增加如下配置:

client_max_body_size 64m;

 

2)重启nginx服务

systemctl restart nginx

 

标签:body,intended,bytes,send,nginx,client,2274148,too
From: https://www.cnblogs.com/miracle-luna/p/17037979.html

相关文章