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

By johninthout // 3 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 © 2019. ForgeRecipes loves you.

Site by David Hemphill, Tanner Hearne, Matt Stauffer & Vince Mitchell.