如何为App Service配置Azure自定义域

时间:2019-04-09 06:54:21

标签: azure azure-active-directory subdomain azure-web-app-service custom-domain

我购买了域xyz.com。我想在地址www.xyz.com着陆页上,并在Azure的www.app.xyz.com App Service上。

我做到了(没关系)

Azure Active Directory > Custom domain names > Add custom domain
app.xyz.com > added TXT reocord in DNS registry with MS=... > Domain is verified and set as primary

enter image description here

我还创建了App Service,发布了应用程序(app.azurewebsites.net正常运行),现在变得很困难了。

App Services > app > Custom domains > Add hostname > www.app.xyz.com

我无法确认域所有权。我应该添加什么ATXTCNAME(或不同组合)到DNS注册表?我尝试了不同的组合,但都失败了。

我使用了TUTORIAL,但仍然无法将现有的和经过验证的自定义域映射到App Service。

1 个答案:

答案 0 :(得分:0)

  

我无法确认域所有权。什么是A和TXT或CNAME(或   不同的组合)我应该添加到DNS注册表中吗?

您可以添加CNAME记录,以将子域映射到应用程序的默认主机名(.azurewebsites.net,其中是应用程序的名称)。 enter image description here

有关详细信息,请参阅Add a CNAME record

  

我购买了域名xyz.com。我想在地址www.xyz.com上登陆   页面,以及来自Azure的www.app.xyz.com应用服务。

因为您的根域是xyz.com,所以您可以添加子域www.xyz.com,但不能使其像这样的www.app.xyz.com。

相关问题