• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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