zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Nginx – Error 413: Request Entity Too Large

August 9, 2011 by Igor Drobot Leave a Comment

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

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

..and add client_max_body_size to it:

1
client_max_body_size 10M;

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

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

Now you are able to upload files larger than 1M

Filed Under: Debian, HTTP, Linux, Networking Tagged With: client_max_body_size, Error 413, Nginx

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

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