IPv6 addresses for host name are incorrectly trimmed by nginx
Maxim Dounin
mdounin at mdounin.ru
Mon Nov 29 04:15:43 MSK 2010
Hello!
On Sun, Nov 28, 2010 at 07:19:17PM +0000, Phil Bayfield wrote:
> I'm trying to test IPv6 on a couple of sites and I seem to have encountered
> a bug with nginx.
>
> I have 2 backend servers behind a proxy, all servers run nginx 0.8.53.
>
> If I enter the IPv6 address into the browser, the address is trimmed when it
> reaches the backend server.
>
> Here is an example using PHP:
>
> Direct request to backend server (works):
>
> http://[2a02:40:40:7::3]/test.php
> $_SERVER['HTTP_HOST'] = [2a02:40:40:7::3]
>
> Via proxy:
>
> http://[2a02:40:40:7::7]/test.php
> $_SERVER['HTTP_HOST'] = [2a02:40:40:7:
Known issue, ipv6 address literals not supported.
http://nginx.org/pipermail/nginx/2010-November/023652.html
Maxim Dounin
More information about the nginx
mailing list