Wednesday, October 4, 2023

Can not arrange client_max_body_size for Nginx in Plesk


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.

Cannot set up 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:

  1. First, connect with the Plesk server through SSH as a root consumer.
  2. Subsequent, set the worldwide worth for Nginx:
    # echo 'client_max_body_size 128m;' > /and so on/nginx/conf.d/aa_client_max_body.conf
  3. 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

  4. After that, we’ll regenerate Apache configuration information by executing this command:
    # plesk sbin httpdmng --reconfigure-all
  5. 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.


By no means once more lose prospects to poor server pace! Allow us to make it easier to.

Our server consultants will monitor & keep your server 24/7 in order that it stays lightning quick and safe.