Nginx配置支持IPv6

http同时监听IPV4和IPV6

server {
        listen [::]:80;
}

HTTPS同时监听IPV4和IPV6

server {
        listen [::]:443;
}

只监听IPV6

server {
        listen [::]:80 default ipv6only=on;
}
server {
listen [3608:f0f0:3002:31::1]:80;
}

添加IPv6的域名解析

添加AAAA记录

查询是否支持IPv6

https://www.china-ipv6.cn/#/IPv6/checkingTools

发表评论