上传2M多的附件时,出现如下错误
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/0.8.48</center>
<!-- a padding to disable MSIE and Chrome friendly error page -->
&lt;!-- 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;  ##可以根据自己的实际需要去定义上传附件的大小;
修改完之后,重启