zoukankan      html  css  js  c++  java
  • Nginx出现413 Request Entity Too Large问题的解决方法

    上传文件时控制台出现了413  Request Entity Too Large的问题。将Nginx中加入client_max_body_size参数并调整合适的大小(如果没有该参数就要加入)。

    解决方法:

    1、打开nginx服务的配置文件nginx.conf, 路径一般是:/usr/local/nginx/conf/nginx.conf。

    2、在http{}中加入client_max_body_size 10m,我这里配置的是10M。

    http {
        client_max_body_size 10m;
        include       mime.types;
        default_type  application/octet-stream;
    
       ......
    
    }
    

      

    3、重新nginx服务

    ./nginx -s reload

  • 相关阅读:
    js字符串空格和换行
    python resources
    -eous
    英语资源网站
    -iatry 没病走两步
    book corpus
    epub converters
    brainstorm detain
    craftsman
    parachute
  • 原文地址:https://www.cnblogs.com/foxting/p/12467539.html
Copyright © 2011-2022 走看看