New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx not responding to IPv4 when Listen directive updated to support IPv6 #36
Comments
did you compile or recompile Nginx with IPv6 support - from http://centminmod.com/nginx.html
for existing installs same edit NGINX_IPV='y' and run centmin.sh option 4 to recompile Nginx use http://ip6.nl/ to check if your site is IPv6 ready i.e. for sslspdy.com test site of mine http://ip6.nl/#!sslspdy.com of course ensure your have domain DNS AAAA record set too |
Yes I'm waiting to setup the DNS record until I know that Nginx is correctly configured to listen for inbound IPv6 DNS requests. I was planning to just test the server by using the IPv6 IP address, not the domain name, but even before I got that far I noticed that just adding this listen block is taking the site down... even though it shouldn't be affecting the IPv4 traffic at all... |
my ipv6 usage and experience is limited. This is what i have for sslspdy.com for SSL config
|
Actually, it looks like this is the culprit: http://trac.nginx.org/nginx/ticket/345 Nginx now has a default of To enable listening on both ipv4 and ipv6, need to explicitly tell the listen block to also listen on ipv4 with |
Hmm... just tested this, and This works fine, although shouldn't be necessary to do it this way according to the two links I posted above:
|
This is what I use in mine
to work for both ipv4 and ipv6 |
@kiksilog thanks for chiming in :) pretty much what I use too from my sslspdy.com example above except i am tying to a specific individual ipv6 address :) |
BTW, I was working on something else and found the issue. Nginx has a quirk where "ipv6only" variable can only be manually specified once per port across ALL domains. So most likely it's manually specified in another file thus can't be specified in my vhosts. More details here: https://codinginthetrenches.com/2013/12/14/nginx-ipv6only-setting-gotcha/ |
I just tried editing my server block from
listen 80;
tolisten [::]:80;
and after saving and then restarting nginx, I went from a working Xenforo site to a Nginx 404 page.I just upgraded to Nginx 1.7.9 (I'm using the beta08). The server block is the default centminmod nginx vhost one:
I reverted back to the old ip4 listen block, restarted nginx, and everything works properly.
My ISP (comcast) doesn't offer IP6 for my internet connection right now, so I can't check to see if the domain is responding correctly on IP6.
The text was updated successfully, but these errors were encountered: