解决 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