http:413 Request Entity Too Large

1. 问题

文件上传的时候http返回异常

http:413 Request Entity Too Large

2. 原因

nginx 代理文件大小限制

3. 解决

修改nginx.conf文件,再http{}添加

client_max_body_size 2m;  

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_36325121/article/details/89885686