Nginx error 413: Request entity too large – How to Fix

By | May 20, 2015

If you are getting this error on a fresh server – most probably your nginx configuration is not tuned. In order to avoid this error, we’ll add a line to config.

So open /etc/nginx/nginx.conf and add this line under http section

client_max_body_size 16M;


You can set up more than 16 Mb if you need, but generally it is enough for almost any tasks.

service nginx restart

And have fun! :)


Leave a Reply

Your email address will not be published. Required fields are marked *