• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Additional nginx directives - client_max_body_size issue

-FP

New Pleskian
Hi,

I'm trying to add client_max_body_size to my site in Apache & nginx Settings under Additional nginx directives, but I'm getting an error:

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

Any ideas on how to work around this?

Using Plesk 12.5 on Centos 7.
 
The error saying the the problem itself

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

Nginx accept only one directive, the directive already exist in /etc/nginx/nginx.conf
 
  • Like
Reactions: -FP
Back
Top