文件上传失败 -nginx报错 client intended to send too large body: 1331696 bytes

       location / {
            root   /data/fastdfs/data;
            include gzip.conf;
            ngx_fastdfs_module;
            client_max_body_size 100m;
           expires 12h;
        }

  client_max_body_size 100m; 设置上传大小限制

     

2016/02/05 16:23:56 [error] 12024#0: *441106971 connect() failed (111: Connection refused) while connecting to upstream, client: 113.214.1.10, server: localhost, request: "GET /h5teb/ugcH5/index.htm?source=android&mall=8&TGC=911FDD2F99B84D528F0A7EE71780A943 HTTP/1.1", upstream: "http://113.214.1.23:8000/h5teb/ugcH5/index.htm?source=android&mall=8&TGC=911FDD2F99B84D528F0A7EE71780A943", host: "www.testcrm.com"
2016/02/05 16:48:14 [error] 12013#0: *441119082 client intended to send too large body: 1331696 bytes, client: 113.214.1.10, server: localhost, request: "POST /h5teb/complaints/save.htm HTTP/1.1", host: "www.testcrm.com", referrer: "http://www.testcrm.com/h5teb/complaints/index.htm"

  

原文地址:https://www.cnblogs.com/jifeng/p/7349809.html