Sometimes it may happen, that you get the following error message when you try to upload a file:

413 Request Entity Too Large

Nginx has a default value for the config variable

client_max_body_size

of 1M. Everything that is bigger than this, will produce this error. To fix this, simply increase the value of this variable in nginx.conf (simply add it, if it doesn’t exists):

client_max_body_size 5M;

and restart nginx:

/usr/local/etc/rc.d/nginx restart

Related topics:

 

Flattr this!