Focus, exchange and share
Latest information in cloud computing

How to use nginx to modify the upload file size limit?

How to use nginx Modify Upload file size Restrictions? When users build their own servers, they use nginx as a proxy. When uploading client files larger than 1M, it is found that they cannot be uploaded normally, and nginx directly reports an error. Because the uploaded file is too large, it can be solved by modifying the configuration of the next nginx.

resolvent:

 server { listen 80; server_name www.hopesz.cn; client_max_body_size 10M; location /download/ { proxy_pass  http://172.16.90.228:8082/ ; } }

PS: It needs to be placed in the braces of the server

PS: If not, add the following code in http {}

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

The above is about "how to use nginx to modify the upload file size limit?" The solution when the tool reports an error ". If you need to purchase a cloud Virtual host , recommend Kufan Cloud, share Virtual host , free test host Exclusive IP virtual host Complete, all kinds of configurations to meet different requirements Website construction Demand; Affordable price; At least 9 yuan/month, free registration is provided to let you quickly go online.

Optional address: https://www.kufanyun.com/host/buy.html

Like( one )
Do not reprint without permission: Kufan Cloud Knowledge Base » How to use nginx to modify the upload file size limit?
  • Daily sales 500+
    Basic virtual host

    share CPU

    share Memory

    2G space

    share bandwidth

    share IP

    Distributed storage

    Suitable for personal blog and personal webmaster websites

    ¥ nine Original price ¥ twenty-eight element

  • Daily sales 500+
    Value virtual machine CVM

    2 cores CPU

    2G Memory

    180G Hard disk

    5M bandwidth

    independent IP

    Distributed storage

    Suitable for enterprise official websites and industry portal websites

    ¥ ninety-nine Original price ¥ two hundred and ten element

  • Daily sales 500+
    Universal ECS

    4-core CPU

    4G Memory

    50G Hard disk

    20M bandwidth

    independent IP

    Distributed storage

    Suitable for e-commerce and forum websites

    ¥ two hundred and fifty-four Original price ¥ three hundred and twenty-two element

comment Grab the sofa

  • Nickname (required)
  • Email (required)
  • website

China's leading enterprise cloud service provider

Domain name registration ECS