WordPress, HTTP Error, 413 Request Entity Too Large

After moving my WordPress site from a LAMP to a LEMP stack (replacing Apache with Nginx), I wanted to upload some new images – but I couldn’t. I either got a “HTTP Error” or “413 Request Entity Too Large“. So I started my research.

Some minutes later I stumbled upon a little older blog post of Dave Perrett, which suggests increasing the max allowed body size. In fact my images were a little bigger than small.

After adding “client_max_body_size 20M;” to the server section of the nginx site configuration the upload worked as expected.

Also published on Medium.