On Tue, Mar 23, 2010 at 10:05:16AM +0530, Kartik Mistry wrote:
> On Mon, Mar 22, 2010 at 10:21 PM, Nikolaus Schulz <microsch...@web.de> wrote:
> > with the current default configuration, nginx basically ignores IPv6 and
> > listens at IPv4 addresses only.  Please consider adding out-of-the-box
> > support for IPv6.
> 
> Thanks.
> 
> Adding,
> 
> listen [::]:80;
> 
> to /etc/nginx/sites-available/default file should be sufficient for
> both IPv4 + IPv6 support. Correct me if I'm wrong :)

That is ALMOST correct.  Unfortunately, its correctness depends upon the
sysctl value net.ipv6.bindv6only.  In addition, the default for this
value was recently changed to "1" by the netbase package (see bug
#560238).

So, on a current Sid system, the above line listens ONLY for IPv6
connections, unless the adminstrator changed the default sysctl value.
In order to work with both sysctl values, this does the trick:

        listen   80;
        listen   [::]:80 default ipv6only=on;

See http://nginx.org/pipermail/nginx/2009-November/016672.html

Nikolaus



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to