Welcome! Log In Create A New Profile

Advanced

Re: Nginx and ipv6

January 15, 2011 10:51AM
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Sat, Jan 15, 2011 at 08:57:06AM -0500, vlad59
> wrote:
>
> [...]
>
> > location ~ ^/(data|conf|bin|inc) {
> > deny all;
> > }
>
> [...]
>
> > Yesterday I made one change listen 80 -> listen
> [::]:80 (to enable ipv6)
> > and all the forbidden directories are not
> protected anymore (anybody
> > with ipv4 or ipv6 can access them). Reverting to
> ipv4 (listen 80) fix
> > the problem.
> >
> > I tried to change my configuration file that way
>
> >
> > listen 80; ## listen for ipv4
> > listen [::]:80 default ipv6only=on;
> >
> > to have two explicit bind.
> >
> > And if I force my browser to use ipv4 the
> directories are protected. If
> > my browser use ipv6 the directories are not
> protected anymore.
> >
> > So I have many questions :
> > - Is my configuration file wrong ?
> > - Is there something wrong with ipv6 and nginx
> ?
> > - Does anybody already had this problem ?
>
> Access module (allow/deny directives) supports
> ipv6 as of 0.8.22+.
> If you are using older version - you have to
> upgrade.
>
> Maxim Dounin

Damn, sorry for the noise, next time I'll try to RTFM a little more.

I'm using Debian Squeeze so revision 0.7.67. That explains everything, I'll upgrade this tomorrow.

Thanks a lot for your quick answer.

Vlad
Subject Author Posted

Nginx and ipv6

vlad59 January 15, 2011 08:57AM

Re: Nginx and ipv6

Maxim Dounin January 15, 2011 10:10AM

Re: Nginx and ipv6

vlad59 January 15, 2011 10:51AM

Re: Nginx and ipv6

toto2008 January 16, 2011 04:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready