413 (Request Entity Too Large)
解决方法:
nginx代理后,上传文件出现xxx 413 (Request Entity Too Large)
(anonymous) ,在nginx配置文件添加client_max_body_size 100m;即可,大小你自己定。
例如
location ~ /api/*{
client_max_body_size 100m;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://site_do;
#proxy_pass http://localhost:9090;
}
如果环视解决不了,请参考:http://www.yayihouse.com/yayishuwu/chapter/2594
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti