Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
而报文大小限制设置在server{}中,则控制该server收到的请求报文大小,同理,如果配置在location中,则报文大小限制,只对匹配了location 路由规则的请求生效。这篇博文提供一个思路,设置nginx中client_max_body_size值,client_max_body_size 20M。还可以选择在location{ }中设置:client_max_body_size 20m;也可以选择在server{ }中设置:client_max_body_size 20m;
原创
2024-04-16 17:08:23 ·
1296 阅读 ·
0 评论