nginx报413 request entity too Large的错误解决方法

问题

Nginx 413 Request Entity too Large ,提示达到Post的限制大小?

 

解决方案

修改nginx的配置文件

打开nginx主配置文件nginx.conf,一般在/usr/local/nginx/conf/nginx.conf这个位置,找到http{}段,修改或者添加

client_max_body_size 20m;

然后重新加载配置文件,如/usr/local/nginx/sbin/nginx –s reload

posted @ 2018-02-01 10:16  沝逸  阅读(159)  评论(0编辑  收藏  举报