Nginx and ipv6

vlad59 nginx-forum at nginx.us
Sat Jan 15 18:51:28 MSK 2011


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,166530,166543#msg-166543




More information about the nginx mailing list