Skip to content

Raw Ipv6 VIRTUAL_HOST broken on 0.9.1 #1693

@tkw1536

Description

@tkw1536

As of updating to nginx-proxy version 0.9.1 it is no longer possible to set a VIRTUAL_HOST corresponding to a raw ipv6 address.

When attempting this, the entire nginx proxy configuration errors out and falls back to the default error page:

Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working.
Further configuration is required.

The logs show the following error message:

nginx-proxy_1                        | 2021/07/14 15:02:32 [emerg] 52#52: invalid host in upstream "[2001:638:(rest of ipv6 address censored)]-upstream" in /etc/nginx/conf.d/default.conf:108
nginx-proxy_1                        | nginx: [emerg] invalid host in upstream "[2001:638:(rest of ipv6 censored)]-upstream" in /etc/nginx/conf.d/default.conf:108

I rolled back to 0.9.0 and confirmed the issue does not occur there.

I suspect the culprit is #1163, as []-bracketed ipv6 addresses do not seem to be valid upstream names when adding an upstream suffix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions