Nginx 报错 client intended to send too large body

nginx报错日志:

2020/03/23 12:54:30 [error] 32547#0: *1272 client intended to send too large body: 1124770 bytes, client: 127.0.0.1, request: "POST /async-upload.php HTTP/1.1", host: "127.0.0.1:8000", referrer: "http://127.0.0.1:8000//customize.php?url=http%3A%2F%2F127.0.0.1%3A8000%2F"

导致的原因是在 Nginx中设置的最大上传文件大小过小,或者没有设置导致的,在nginx.conf中加入如下一行即可

http {

    client_max_body_size 50m;#配置nginx上传文件最大限制
}
发布了109 篇原创文章 · 获赞 101 · 访问量 36万+

猜你喜欢

转载自blog.csdn.net/Alen_xiaoxin/article/details/105046379