美文网首页
解决413 Request Entity Too Large报错

解决413 Request Entity Too Large报错

作者: 无理取now | 来源:发表于2018-04-03 20:34 被阅读82次

修改nginx配置

   1、打开nginx主配置文件nginx.conf,一般在/usr/local/nginx/conf/nginx.conf这个位置,找到http{}段并修改以下内容:

client_max_body_size 2m;  

 当中的2m修改成你需要的允许文件大小。

2、测试配置正确后,重启nginx使配置生效 

nginx -s reload

相关文章

网友评论

      本文标题:解决413 Request Entity Too Large报错

      本文链接:https://www.haomeiwen.com/subject/ylnchftx.html