<div dir="ltr">If this is a linux box you could simple use [::]:80 and it should, by default, responde to both v4 and v6... <br><br><br><div>"In Linux by default any IPv6 TCP socket also accepts IPv4 traffic using the IPv4 to IPv6 mapped address format, i.e., ::ffff:<IPv4 adddress in dotted decimal notation>. E.g., ::ffff:192.168.0.27 maps the IPv4 address 192.168.0.27 to an IPv6 address.</div>
<div><br></div><div>When you enable the address [::]:80, binding port 80 using IPv6, in the listen directive, in Linux, by default, the IPv4 port 80 is also enabled. Meaning that nginx listens for both IPv4 and IPv6 incoming traffic. Therefore if you erroneously specify also a IPv4 address you'll get an already bind address error when reloading nginx configuration." (<a href="http://wiki.nginx.org/HttpCoreModule">http://wiki.nginx.org/HttpCoreModule</a>) "<br>
<br>So I guess <span style="font-family:arial,sans-serif;font-size:13px">ipv6only=off should do the same... and it should work.... I can be 100% sure since I don't have any box with nginx 1.4 + ipv6 yet!</span></div>
</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 5:19 PM, James Cloos <span dir="ltr"><<a href="mailto:cloos@jhcloos.com" target="_blank">cloos@jhcloos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>>>>> "LT" == Lukas Tribus <<a href="mailto:luky-37@hotmail.com">luky-37@hotmail.com</a>> writes:<br>
<br>
>> Although [::]:80 ipv6only=off; does work as advertized (including for<br>
>> localhost sockets), [::1]:80 ipv6only=off; fails to respond to v4<br>
>> connections.<br>
<br>
LT> Which is expected, since ::1 is an ipv6 address.<br>
<br>
No it is not expected.<br>
<br>
Everything else sees conenctions to anything in <a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a> when<br>
listen(2)ing to ::1 with bindv6only off.<br>
<br>
-JimC<br>
<span class="HOEnZb"><font color="#888888">--<br>
James Cloos <<a href="mailto:cloos@jhcloos.com">cloos@jhcloos.com</a>> OpenPGP: 1024D/ED7DAEA6<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>