解决 nginx 413 Request Entity Too Large-lynnteng0
上传2M多的附件时,出现如下错误 413 Request Entity Too Large413 Request Entity Too Large
nginx/0.8.48
<!-- a padding to disable MS startActivitySchemeProcess.htmlPOST
http://tt.com.cn/approval/startActivitySchemeProcess.html 413 (Request Entity Too Large)
这是由于上传的附件超过了nginx的设置(nginx默认允许上传的附件的大小为1M)
vi /usr/local/nginx/conf/nginx.conf
lient_max_body_size 20m;##可以根据自己的实际需要去定义上传附件的大小;
修改完之后,重启
页:
[1]