• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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