Nginx出现“413 Request Entity Too Large”错误解决方法

四月 21, 2010 by · Leave a Comment 

解决方法:打开nginx主配置文件nginx.conf,找到http{}段,添加
[sourcecode language="php"]client_max_body_size 20m;
Centos下 vi /usr/local/nginx/conf/nginx.conf[/sourcecode]

重启NGINX
[sourcecode language="php"]kill -HUP `cat /usr/local/nginx/nginx.pid `[/sourcecode]

恢复正常

About admin

注意:

1、本站启用了审核机制,你的留言可能稍后才会显示,请不要重复提交,谢谢。
2、留言时的头像是Gravatar提供的服务。想设置的看这里
3、评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha