通过搜过nginx的错误日志client intended to send too large body: 1161693 bytes,原来是nginx中的client_max_body_size 的限制。
抓包看了一下:
是413错误,和书上说的一样。
解决方法:
在nginx的配置文件http{后面添加限制:
client_max_body_size 2m;
随机文章:
This entry was posted
on Friday, February 19th, 2021 at 15:57 and is filed under 我的日志.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.