Upload size on Nginx
Some times we have to use the upload feature in webapp.
When using Nginx the default value is 1MB. If it's not exactly what you need you can change it by open the configuration and put this config into your server or http entry:
Globally:
http {
client_max_body_size 10M;
}
Just your app:
server {
client_max_body_size 10M;
}
Will change the max size for the upload files to 10MB.
Written by Marcio Garcia
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nginx
Authors
reiaguilera
279.4K
jamesdullaghan
90.14K
Related Tags
#nginx
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#