413 Request Entity Too Large Fix

If you are constantly running into 413s and none of the regular solutions such as these are working, then give this a read!

If you have used certbot to generate SSL for your site, you will see these new ssl conf files

Regular conf you created
SSL cert bot generated conf

If you had any old setting before you certified, they persist in these ssl.conf files even if you change your site’s regular conf file.

I had set my LimitRequestBody to 100kb when I just started as a test and then certified using

certbot –apache

I then edited my .conf file with LimitRequestBody 16777216 (16 mb in bytes) but nothing changed on my site. I kept getting 413s and it’s all because the ssl.conf never updated.

After updating the ssl.conf file, the 413s stopped and all was well!

Leave a Reply

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