zoukankan      html  css  js  c++  java
  • 上传图片出现413错误

    原文:https://blog.csdn.net/weixin_36586564/article/details/78921670

    nginx 出现413 Request Entity Too Large问题的解决方法

    nginx 出现413 Request Entity Too Large问题的解决方法

    使用tomcat/manager(大小4.1M),出现 nginx: 413 Request Entity Too Large 错误。 
    根据经验是服务器限制了上传文件的大小

    原来nginx默认上传文件的大小是1M,可nginx的设置中修改。

    解决方法如下: 
    1.打开nginx配置文件 nginx.conf, 路径一般是:/etc/nginx/nginx.conf。 
    2.在http{}段中加入 client_max_body_size 20m; 20m为允许最大上传的大小。 
    3.保存后重启nginx,问题解决。

    service nginx restart
  • 相关阅读:
    第一次被队友说给力
    An Unfair Game-[ACdream1035]
    男人八题解题报告
    it's hard to say
    剪花布条[HDU2087]
    1117: 无序字母对 character
    20181101
    20181104
    20181102
    20181031
  • 原文地址:https://www.cnblogs.com/libin6505/p/8991475.html
Copyright © 2011-2022 走看看