Article ID: 122689, created on Aug 20, 2014, last review on May 14, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux


The following error is being displayed during an attempt to set a directive client_max_body_size in the Additional nginx directives in domain web server settings:

Invalid nginx configuration: nginx: [emerg] "client_max_body_size" directive is duplicate in /var/www/vhosts/system/ nginx: configuration file /etc/nginx/nginx.conf test failed


This was considered an internal software issue with internal ID #PPPM-1914.


The issue will be fixed in future updates. Meanwhile, the following workaround can be applied:

  1. Add the following lines to the /usr/local/psa/admin/conf/panel.ini:

    nginxClientMaxBodySize =

    By default client_max_body_size 128m; is added to all vhosts. If the value is specified in panel.ini (e.g. "nginxClientMaxBodySize = 64m") default client_max_body_size value will be overridden server wide.

  2. Reconfigure NGINX\Apache settings to apply changes in /usr/local/psa/admin/conf/panel.ini:

    # plesk sbin httpdmng --reconfigure-all
  3. Restart NGINX:

    # service nginx restart
  4. Now it is possible to specify custom value of client_max_body_size in Additional nginx directives per domain, i.e:

    client_max_body_size 512m

All domains that do not have the custom value for this directive, will get a default one from /usr/local/psa/admin/conf/panel.ini.

Search Words

1015 Object owner not found

1015 Object owner not found.

Invalid nginx configuration: nginx: [emerg] "client_max_body_size" directive is duplicate

nginx client_max_body_size directive is duplicate

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF