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