使用 Namecheap 和 Microsoft Azure 配置自定义域名

Configure a Custom Domain Name Using Namecheap and Microsoft Azure

所以我在 Azure 上有 Web 应用程序,我想更改域名。我正在使用 "Namecheap" dns 托管服务。

我在关注这个 tutorial to achieve my goal, I have done all steps in tutorial except 6.c (bcs I can't find subdomain settings in new namecheap control panel). Anyway, I was able to complete step 9, but now I have an error when I visit my site:

"Error 404 - Web app not found."

当我尝试再次执行 tutorial 中的第 9 步时出现错误: "The host name www.w2dance.com has already been assigned to another site Azure: wheretodance.".

而且我不知道现在还能做什么。这是我的 DNS 设置:

这是 azure 门户的屏幕截图:

更新

几个小时后它开始工作,看起来我有惊恐发作:D

您在 NameCheap 的 "Advanced DNS" 页面中的 DNS 设置不正确。步骤 6-C 是重要的一步,因为 Azure Web 应用程序需要这些子域来验证您是 w2dance.com 域的所有者。

我刚刚在我的 NameCheap 帐户中修改了一个我自己的域名,并注册了一个 screenshot 以便您查看应该为您的域输入的记录。

我还将缩短的 "Host" 列值放在下面,这样您就可以看到完整的文本:

在我的第 3 行中,"Host" 列的值为: "awverify.www.w2dance.com"

在我的第 4 行中,"Host" 列值是: "awverify.w2dance.com"

添加子域意味着为您的域添加 CNAME 记录。添加这些 "awverify." 子域记录后,Microsoft Azure Web Apps 将能够验证您是 w2dance.com 的所有者,因为只有您可以将这些 "test" 子域添加到您的 DNS 域中服务器。

能否请您添加这 2 条 CNAME 记录并让我知道它是否会得到解决?如果我的解释解决了您的问题,您是否可以设置为答案,不胜感激