Nginx – Error 413: Request Entity Too Large

The default Nginx maximum body-size of a client request, or maximum file size is 1M. So when you try to upload something larger than 1M, you get the following error: 413: Request Entity Too Large

Create a new configuration file:

1
/etc/nginx/conf.d/zeldor.conf

..and add client_max_body_size to it:

1
client_max_body_size 10M;

Save and close the file, to apply the changes, nginx must be reloaded:

1
nginx -t && /etc/init.d/nginx reload

Now you are able to upload files larger than 1M

0 Responses to “Nginx – Error 413: Request Entity Too Large”


  • No Comments

Leave a Reply