- Plesk for Linux
The following error is presented in Plesk > Home:
PLESK_ERROR: Unable to generate the web server configuration file on the host because of the following errors:
Template_Exception: nginx: [emerg] unknown directive " expires" in /var/www/vhosts/system/example.com/conf/vhost_nginx.conf:7
nginx: configuration file /etc/nginx/nginx.conf test failed
Please resolve the errors in web server configuration templates and generate the file again.
The same error appears in the
The nginx configuration file is corrupted.
Connect to the server via SSH.
Recreate configuration files for the affected domain
# plesk repair web example.com