Cannot enable nginx support: directive is duplicate

Created:

2016-12-18 06:53:09 UTC

Modified:

2017-08-08 13:37:07 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot enable nginx support: directive is duplicate

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

This is not possible to enable nginx support /usr/loca/psa/admin/bin/nginxmng -e with the error below:

    "proxy_read_timeout" directive is duplicate in /var/www/vhosts/system/example.com/conf/vhost_nginx.conf:30

Cause

Some nginx directives have duplicates on server and domain level.

Resolution

  1. Find domains which have duplicate directive from an error:

    # grep -r proxy_read_timeout /var/www/vhosts/system/*/conf/vhost_nginx.conf
  2. Comment/remove this directive in corresponding vhost_nginx.conf file

  3. Disable/enable nginx support:
    # /usr/loca/psa/admin/bin/nginxmng -d
    # /usr/loca/psa/admin/bin/nginxmng -e
Have more questions? Submit a request
Please sign in to leave a comment.