• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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