AdrianC
Basic Pleskian
I need to increase the value of client_max_body_size in order to upload larger files on my website.
The default that plesk sets in these files is 128M:
/var/www/vhosts/system/[DOMAIN]/conf/nginx.conf
/var/www/vhosts/system/[DOMAIN]/conf/nginx.conf.bak
/var/www/vhosts/system/[DOMAIN]/conf/nginx_ip_default.conf.bak
/var/www/vhosts/system/[DOMAIN]/conf/nginx_ip_default.conf
I tried changing default value in /etc/nginx/nginx.conf to one of these
client_max_body_size 0;
client_max_body_size 512M;
But none worked, I set it , restarted nginx and apache and I still got the error when uploading.
The above vhost config files also still contain the 128M value.
I tried removing value from /etc/nginx/nginx.conf and adding it to:
Plesk interface > service plan > web server > nginz directives
I applied changes, synced the plan, I still get the error.
Is there a way to globally set this without creating/editing these custom files for each individual domain ?
vhost.conf , vhost_ssl.conf, vhost_nginx.conf ?
// these settings overlap is very confusing, maybe Plesk can do like a simple debug.php file that can run on final website and print all options that got loaded in the end (nginx limits, apache limits, fcgid limits, php limits) they all overlap one another in addition to plesk service plan, vhost, etc) very confusing.
The default that plesk sets in these files is 128M:
/var/www/vhosts/system/[DOMAIN]/conf/nginx.conf
/var/www/vhosts/system/[DOMAIN]/conf/nginx.conf.bak
/var/www/vhosts/system/[DOMAIN]/conf/nginx_ip_default.conf.bak
/var/www/vhosts/system/[DOMAIN]/conf/nginx_ip_default.conf
I tried changing default value in /etc/nginx/nginx.conf to one of these
client_max_body_size 0;
client_max_body_size 512M;
But none worked, I set it , restarted nginx and apache and I still got the error when uploading.
The above vhost config files also still contain the 128M value.
I tried removing value from /etc/nginx/nginx.conf and adding it to:
Plesk interface > service plan > web server > nginz directives
I applied changes, synced the plan, I still get the error.
Is there a way to globally set this without creating/editing these custom files for each individual domain ?
vhost.conf , vhost_ssl.conf, vhost_nginx.conf ?
// these settings overlap is very confusing, maybe Plesk can do like a simple debug.php file that can run on final website and print all options that got loaded in the end (nginx limits, apache limits, fcgid limits, php limits) they all overlap one another in addition to plesk service plan, vhost, etc) very confusing.