Fix NGINX 413 Request Entity Too Large (cannot upload larger files)

By picoprime // 8 years ago
If you cannot upload larger files via your website, it might be because your Nginx config is missing client_max_body_size.

This recipe will go through your all websites on the server and add a line "client_max_body_size 100M" to configs that are valid websites, ie. contain a line # FORGE SSL. Limit is set to 100MB.

Run it as ROOT.

Design © 2024. ForgeRecipes loves you.

Site maintained by Vince Mitchell.

Inspired by original by David Hemphill, Tanner Hearne, & Matt Stauffer.