Nginx and ipv6
Maxim Dounin
mdounin at mdounin.ru
Sat Jan 15 18:07:25 MSK 2011
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
> [code]
> listen 80; ## listen for ipv4
> listen [::]:80 default ipv6only=on;
> [/code]
> 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
More information about the nginx
mailing list