Skip to content

nginx_config failed to parse /etc/nginx/conf.d/default.conf due to: NgxParserDirectiveContextError #101

Description

@Danrancan

In my amplify web interface I am getting the same error for many nginx virtual host .conf files:

Agent could not parse nginx config file
nginx-1.25.1 @ example.com
nginx-1.25.1 @ mail.example.com
Agent could not parse nginx config failed to parse /etc/nginx/conf.d/01-mail.example.com.conf due to: NgxParserDirectiveContextError
Agent could not parse nginx config failed to parse /etc/nginx/conf.d/01-example.com.conf due to: NgxParserDirectiveContextError

In my Nginx error logs I am getting the following errors for multiple virtual hosts:

nginx_config failed to parse /etc/nginx/conf.d/default.conf due to: NgxParserDirectiveContextError
nginx_config failed to parse /etc/nginx/conf.d/01-example.com.conf due to: NgxParserDirectiveContextError
nginx_config failed to parse /etc/nginx/conf.d/01-mail.example.comf due to: NgxParserDirectiveContextError

What could be causing these errors, and how can I debug and fix them?
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions