• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

client_max_body_size is duplicate

Xavier1

New Pleskian
Hello,

I'm having a hard time configuring this setting for nginx on a domain, whatever i try i cant get it to accept files as big as i need.
Every time i try i get this red message :
Code:
Configuration Nginx non valide : nginx: [emerg] "client_max_body_size" directive is duplicate in /var/www/vhosts/system/domain.fr/conf/vhost_nginx.conf:4 nginx: configuration file /etc/nginx/nginx.conf test failed
I followed these instructions:
http://kb.odin.com/en/122689

Strange thing is there was no panel.ini file where the instructions are pointing so i created one, but still, i cant get that directive to work.

Before plesk 12 (with 11.5) i finally got it to work by manually editing some nginx conf file on the server, but i can't find anymore how...

Thank you
 
Did you FIRST try to modify your "service plans", before modifying configurations with manual edits? All services plans have the options to pre-configure the desired webserver - settings, where you can put your additional desired configuration for Apache and NGINX in. Afterwards you are asked to synchronize the service plans with your domains and could reconfigure the domains with the command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
or
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain YOURDOMAIN.COM

Please make sure to remove some previous manual edits in the domain - settings, because Plesk will not override the additional vhost.conf ( Apache ) and vhost_nginx.conf ( NGINX ) when you reconfigure the domains with the default templates.


If you still insist of doing your own template modifications, please create templates in a new "custom" folder, as described in the documentation:

 
Thank you UFHH01,

Applying my directive to the nginx conf field in the corresponding service plan did not work (i still had the client_max_size 128m; in /var/www/vhosts/system/domain.fr/conf/nginx.conf whenever i did a --reconfigure-all),
but doing the necessary adjustments under a /custom/ template folder did the trick.

I hope what i did here:
http://kb.odin.com/en/122689
will not screw up something else... since it did not work
 
Well, you should un-comment the line "nginxClientMaxBodySize = 128m" at "/usr/local/psa/admin/conf/panel.ini" , if you adjusted now a custom template with your own modifications.

You could as well have another look again in your "/etc/nginx/nginx.conf", to be sure, that there is no additional "client_max_body_size" definition, because this definition is a standard in most nginx.conf - files or their inluded files ( included files are at the bottom of the nginx.conf ).


Apart from all, I'm glad you solved your issue, enjoy the rest of the sunday. :)
 
Back
Top