413 Request Entity Too Large解决方案;设置Nginx客户端图片默认大小!

解决 413 Request Entity Too Large(请求实体太大)
在这里插入图片描述
根据错误信息提示,客户端发送的body过大,nginx默认的客户端body大小为1M。

解决办法 在Nginx.conf 配置里面 配置一下图片 默认大小; 我这里配置的是20M

在这里插入图片描述

解决方案
找到自己主机的nginx.conf配置文件,打开
在http{
    
    }中加入 client_max_body_size 10m;
然后重启nginx
/etc/init.d/nginx restart  或者是  nginx -s reload

猜你喜欢

转载自blog.csdn.net/sqL520lT/article/details/112346549