当我在 yorkshireimagescanning.co.uk 上进行 NS 查询时
C:\>nslookup
> set querytype=soa
> yorkshireimagescanning.co.uk
Server: utdc.xxxxxx.com
Address: 172.16.1.2
Non-authoritative answer:
yorkshireimagescanning.co.uk
primary name server = ns.123-reg.co.uk
responsible mail addr = hostmaster.yorkshireimagescanning.co.uk
serial = 2013062302
refresh = 86400 (1 day)
retry = 0 (0 secs)
expire = 604800 (7 days)
default TTL = 86400 (1 day)
ns.123-reg.co.uk internet address = 212.67.202.2
然后访问 www.yorkshireimagescanning.co.uk:
C:\>nslookup
Default Server: utdc.xxxxxx.com
Address: 172.16.1.2
> www.yorkshireimagescanning.co.uk
Server: utdc.xxxxxx.com
Address: 172.16.1.2
Non-authoritative answer:
Name: waws-prod-am2-001.cloudapp.net
Address: 65.52.128.33
Aliases: www.yorkshireimagescanning.co.uk
yis.azurewebsites.net
waws-prod-am2-001.vip.azurewebsites.windows.net
> set querytype=soa
> www.yorkshireimagescanning.co.uk
Server: utdc.xxxxxx.com
Address: 172.16.1.2
Non-authoritative answer:
www.yorkshireimagescanning.co.uk canonical name = yis.azurewebsites.net
yis.azurewebsites.net canonical name = waws-prod-am2-001.vip.azurewebsites.windows.net
waws-prod-am2-001.vip.azurewebsites.windows.net canonical name = waws-prod-am2-001.cloudapp.net
>
这似乎表明这两个站点的设置不同。WWW 通过 azure 设置为别名 (cname),其中另一个似乎是通过 123-reg 的 A 记录。
尽管如此,他们都通过相同的IP地址。我假设您没有在您的应用程序中做任何事情来限制域名?
在所有域中:
yorkshireimagescanning.co.uk - Fails 404
www.yorkshireimagescanning.co.uk - Works
yis.azurewebsites.net - Works
waws-prod-am2-001.vip.azurewebsites.windows.net - Fails 404
waws-prod-am2-001.cloudapp.net - Fails 404
65.52.128.33 - Fails 404
都指向同一个IP地址。
症结似乎在于制作 yorkshireimagescanning.co.uk 的别名以及 www。您需要一个指向 yis.azurewebsites.net 的 CNAME 参考。