IPV6 problems

Maxim Dounin mdounin at mdounin.ru
Sun Jun 26 02:37:10 MSD 2011


Hello!

On Sat, Jun 25, 2011 at 01:15:53AM -0400, syle wrote:

> Normally how I setup nginx is to proxy php/perl to apache sitting on
> port 81, for ipv6
> its also a proxy pass for perl/php to some upstream local ipv4 address.
> 
> For ipv6 when typing in a domain in browser utilizing a ipv6 address all
> works just fine,
> but if I use a IPV6 IP address in the browser I get: 
> 
> 400 Bad syntax.
> 
> this is only for the proxy to apache for php/perl requests.
> 
> Can someone look into this issue why number(hex) addresses in browser
> will not work
> while domains going to IPV6 do...

There are some missing parts in ipv6 address parsing in various 
places, notably $host will have incorrect value if you use ipv6 
address in browser.  Most likely it's the issue you're facing.

Maxim Dounin



More information about the nginx mailing list