我一直在使用nginx和vhosts,目前有5个配置文件(地址作为示例),按照以下顺序排列:
www.mywebsite.com A record --> 100.0.0.1
&
www.mywebsite.com AAAA record --> 2001::1
100.0.0.1
的vhost配置,default
default
config 虚拟文件:
# default file :
server {
listen 80 default_server;
listen [::]:80 default_server;
...
}
# 2nd file :
server {
listen [::]:80;
server_name mywebsite.com www.mywebsite.com;
...
}
# 4th file
server {
listen 80;
server_name 100.0.0.1;
...
}
# 5th file
server {
listen [::]:80 ipv6only=on;
server_name 2001::1;
...
}
我不明白为什么会违约...