Error about nginx configuration files in Plesk: nginx: [emerg] unexpected end of file

Created:

2016-11-16 13:05:40 UTC

Modified:

2017-08-08 13:35:30 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Error about nginx configuration files in Plesk: nginx: [emerg] unexpected end of file

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

The following error is being displayed in Plesk home page:

New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /var/www/vhosts/system/example.com/conf/vhost_nginx.conf:25 nginx: configuration file /etc/nginx/nginx.conf test failed . The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

Cause

Bad syntax in Additional nginx directives section in Home > Subscriptions >example.com > Websites & Domains > Apache & nginx Settings

Resolution

Go to Home > Subscriptions >example.com > Websites & Domains > Apache & nginx Settings and review syntax in Additional nginx directives field.

Have more questions? Submit a request
Please sign in to leave a comment.