Back to Recipes
Fix NGINX 413 Request Entity Too Large (cannot upload larger files)
cloned from Fix NGINX 413 Request Entity Too Large (cannot upload larger files)
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.
bash