When a user attempts to upload a file that is large you might encounter the following error message
"413 Request Entity Too Large"
The fix can be found below:
To add to all domains under a user make a folder with the username as its name and a .conf file in
/etc/nginx/conf.d/users/ (do not start the filename with cpanel-)
mkdir -p /etc/nginx/conf.d/users/<username>/<filename>.conf
With the following information
Adjust the value according to your needs and then rebuild the Nginx configuration for the user
/scripts/ea-nginx config user
For more information about the ea-nginx script, please refer to the following documentation link.
Once applied, this will allow Nginx to accept files up to the size defined.
You will also need to change the PHP Configuration for the user to allow larger file sizes as well, below is an article on how to do this.
And for more information on how to configure and adjust Nginx, please refer to the documentation below.