[PATCH] ipv6 support for proxy_pass

Maxim Dounin mdounin at mdounin.ru
Thu Mar 8 10:14:52 UTC 2012


Hello!

On Wed, Mar 07, 2012 at 05:35:56PM -0800, Matthieu Tourne wrote:

> Hi,
> 
> Attached is a simple patch to proxy_pass to an IPv6 upstream.
> It currently works only with a variable. proxy_pass ::1; wont' work for
> instance.
> 
> but this will :
> 
>    set $addr "[::1]:8080";
>    proxy_pass http://$addr;
> 
> You also need to add --with-ipv6 to your configure line.

This should be addressed in ngx_parse_url().  The ipv6 cleanup is 
planned somewhere after 1.1.x become stable.

Maxim Dounin



More information about the nginx mailing list