Can not arrange client_max_body_size for Nginx in Plesk and unsure what to do? Discover out what our consultants counsel.
At Bobcares, we provide options for each question, massive and small, as part of our Server Administration Providers.
Let’s check out how our Assist Crew is able to assist when prospects can’t arrange client_max_body_size for Nginx.
Solved: Can not arrange client_max_body_size for Nginx in Plesk
The Plesk bug #PPPM-1914 is liable for stopping the profitable arrange of client_max_body_size for Nginx in Plesk.
Plesk applies the ‘client_max_body_size 128m;’ directive by default for every area though the server-wide worth is ‘1m’. Moreover, we are able to hold ‘128m’ because the default worth server-wide with the next steps courtesy of our proficient Assist Engineers. This may assist resolve the problem available till a repair comes round as part of the longer term product replace:
- First, connect with the Plesk server through SSH as a root consumer.
- Subsequent, set the worldwide worth for Nginx:
# echo 'client_max_body_size 128m;' > /and so on/nginx/conf.d/aa_client_max_body.conf
- Then, we’ll modify the /usr/native/psa/admin/conf/panel.ini file with the next command:
# echo -e "[webserver]n nginxClientMaxBodySize =n" >> /usr/native/psa/admin/conf/panel.ini
In case the panel.ini file doesn’t exist, our Assist Techs advocate creating it through a pattern file and in addition setting right permissions as seen under:
# cp /usr/native/psa/admin/conf/panel.ini.pattern /usr/native/psa/admin/conf/panel.ini
# chmod 644 /usr/native/psa/admin/conf/panel.ini
- After that, we’ll regenerate Apache configuration information by executing this command:
# plesk sbin httpdmng --reconfigure-all
- Subsequent, restart nginx with this command:
# service nginx restart
After following this course of, we will arrange client_max_body_size for Nginx with out working into any additional hassle.
[Looking for a solution to another query? We are just a click away.]
To sum up, our expert Assist Engineers at Bobcares demonstrated what to do when can’t arrange client_max_body_size for Nginx in Plesk.