56 words
1 minute

Changing the Nginx Upload Size Limit

2022-11-27
Views —

With the default Nginx HTTP proxy configuration, request bodies are limited to 1 MB. A larger request can return 413 Request Entity Too Large.

Adjust client_max_body_size in the Nginx configuration. This example raises the limit to 8 MB:

http {
...
#上传文件的大小限制 默认1m
client_max_body_size 8m;
...
}
Changing the Nginx Upload Size Limit
https://blog.coding1024.com/en/posts/4a413d3a/
Author
huangjx
Published at
2022-11-27
License
CC BY-NC-SA 4.0

Comments

Questions, ideas and experiences are welcome. Please be kind and avoid sharing private information.

Loading comments…