IPv6 addresses for host name are incorrectly trimmed by nginx

Phil Bayfield phil at techlightenment.com
Mon Nov 29 11:06:31 MSK 2010


On 29 November 2010 01:15, Maxim Dounin <mdounin at mdounin.ru> wrote:

> 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
>
>
Thanks for the info, will have to hope that someone has time to fix it at
some point!
Unfortunately the only way to test via a 6to4 tunnel on an IPv4 connection
is to use the full IPv6 address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101129/bc1281b6/attachment-0001.html>


More information about the nginx mailing list