Skip to content

(regression) nested server directives when using SSL vhost #186

@3flex

Description

@3flex

PR #184 changed the priority of the vhost file fragments, so the templates will be combined in this order when SSL vhost is used (first number is the priority):

  • 001: nginx/vhost/vhost_header.erb
  • 300: nginx/vhost/vhost_ssl_header.erb
  • 699: nginx/vhost/vhost_footer.erb
  • 999: nginx/vhost/vhost_ssl_footer.erb

The server directive and the relevant closing braces are now:

#vhost_header.erb
server {

#vhost_ssl_header.erb
server {

#vhost_footer.erb
}

#vhost_ssl_footer
}

This creates a nested server directive which is invalid.

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