Getting a 413 status code - How do I fix 'Request Entity Too Large' errors? or Why am I seeing a 413

21 Replies, 1356 Views

Hey! Had the same issue last week. For nginx, you gotta set `client_max_body_size` in both the http AND server blocks, not just one.

Also, don’t forget to restart nginx after (`sudo systemctl restart nginx`). If you’re still getting the 413 status code, check if there’s a proxy (like Cloudflare) capping uploads.

For Apache, look for `LimitRequestBody` in your config.

Hope that helps!

Messages In This Thread



Users browsing this thread: 1 Guest(s)