• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Problems with Nginx domain configuration file

Hello.
I have a problem with the Nginx configuration. Plesk give me this error:
Los nuevos archivos de configuración para el servidor web Apache no fueron creados debido a errores en las plantillas de configuración: nginx: [emerg] "gzip" directive is not allowed here in /etc/nginx/nginx.conf:51 nginx: configuration file /etc/nginx/nginx.conf test failed. Las descripciones detalladas del error han sido enviadas a su dirección de email. Corrija los errores y haga clic aquí para volver a generar los archivos de configuración dañados o haga clic aquí para generar todos los archivos de configuración. Ver los detalles en el solucionador de problemas de configuración

The mails:
Unable to generate the web server configuration file on the host <"domain"> because of the following errors:

Template_Exception: nginx: [emerg] "gzip" directive is not allowed here in /etc/nginx/nginx.conf:51
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Please resolve the errors in web server configuration templates and generate the file again.

How can I solve it?

Thanks.
 
Back
Top