配置 Google 域以指向 Azure 网站
Configuring Google Domain to point to Azure website
我有一个托管在 Azure 上的站点,我试图将一个域从 Google 个域指向。
我目前的配置如下:
Name Type Data
@ A XXX.XXX.XXX.XXX
www CNAME history-podcasts.azurewebsites.net
awverify CNAME awverify.history-podcasts.com
我正在按照此处的说明进行操作:Configuring a custom domain name for an Azure Website.
当我转到 Azure 门户管理域并尝试在域名中输入 url 时,我收到以下消息:
A CNAME record pointing from history-podcasts.com to history-podcasts.azurewebsites.net was not found. Alternative record awverify.history-podcasts.com to awverify.history-podcasts.azurewebsites.net was not found either
当我转到域的 URL 时,我收到以下消息:
The website you have attempted to reach is not available in this Microsoft Azure Web Sites region. This could be due to one of several reasons:
- The web site owner has registered a custom domain to point to the Microsoft Azure Web Site, but has not yet configured Azure to recognize it. Click here to read more.
When a site owner wants to use a custom domain with a Microsoft Azure Web Sites website, Azure needs to be configured to recognize the custom domain name, so that it can route the request to the appropriate server in the region. After registering the domain with a domain provider and configuring a DNS CNAME record to point to the site's Azurewebsites.net address (for example, contoso.azurewebsites.net), the website owner also needs to go to the Azure Portal and configure the site for the new domain. Click here to learn more about configuring the custom domains for a web site.
这与我目前通过带有 Azure 托管的 Namecheap 用于多个域的相同配置设置,它们按预期工作。
编辑:
总而言之,以下是您需要执行的步骤:
1) 使用 DNS 托管服务提供的工具创建 CNAME 记录,将用户从您的域重定向到 Azure 指定的域
此步骤将确保用户在前往 www.history-podcasts.com
时将透明地转到 history-podcasts.azurewebsites.net
Type: CNAME
Name: www
Value: history-podcasts.azurewebsites.net
重要提示:请注意,DNS 服务器更新其记录需要时间,因此您应该等待大约 30 分钟再继续。
2) 使用 DNS 托管服务工具将您的裸域重定向到子域
此步骤将确保在转到 history-podcasts.com
时,用户将被重定向到 www.history-podcasts.com
对于 Google 个域,您可以按照本指南进行操作 here。
3) 将您的域添加到 Azure 网站
此步骤将向 Azure 保证您拥有该域,并且您希望可以使用指定的域名访问您的站点。
- 登录 https://manage.windowsazure.com/
- 导航
Websites -> [Your Website] -> Configure
- 向下滚动到
Domain names
- 单击
Manage Domains
(注意自定义域只能在共享、基本或标准模式下使用)
- 添加您的域名
www.history-podcasts.com
此时您应该可以使用 history-podcasts.com
和 www.history-podcasts.com
域名访问您的网站。
如果您的网站需要 HTTPS,您将需要采取额外的步骤:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-configure-ssl-certificate/
我有一个托管在 Azure 上的站点,我试图将一个域从 Google 个域指向。
我目前的配置如下:
Name Type Data
@ A XXX.XXX.XXX.XXX
www CNAME history-podcasts.azurewebsites.net
awverify CNAME awverify.history-podcasts.com
我正在按照此处的说明进行操作:Configuring a custom domain name for an Azure Website.
当我转到 Azure 门户管理域并尝试在域名中输入 url 时,我收到以下消息:
A CNAME record pointing from history-podcasts.com to history-podcasts.azurewebsites.net was not found. Alternative record awverify.history-podcasts.com to awverify.history-podcasts.azurewebsites.net was not found either
当我转到域的 URL 时,我收到以下消息:
The website you have attempted to reach is not available in this Microsoft Azure Web Sites region. This could be due to one of several reasons:
- The web site owner has registered a custom domain to point to the Microsoft Azure Web Site, but has not yet configured Azure to recognize it. Click here to read more.
When a site owner wants to use a custom domain with a Microsoft Azure Web Sites website, Azure needs to be configured to recognize the custom domain name, so that it can route the request to the appropriate server in the region. After registering the domain with a domain provider and configuring a DNS CNAME record to point to the site's Azurewebsites.net address (for example, contoso.azurewebsites.net), the website owner also needs to go to the Azure Portal and configure the site for the new domain. Click here to learn more about configuring the custom domains for a web site.
这与我目前通过带有 Azure 托管的 Namecheap 用于多个域的相同配置设置,它们按预期工作。
编辑:
总而言之,以下是您需要执行的步骤:
1) 使用 DNS 托管服务提供的工具创建 CNAME 记录,将用户从您的域重定向到 Azure 指定的域
此步骤将确保用户在前往 www.history-podcasts.com
时将透明地转到 history-podcasts.azurewebsites.net
Type: CNAME
Name: www
Value: history-podcasts.azurewebsites.net
重要提示:请注意,DNS 服务器更新其记录需要时间,因此您应该等待大约 30 分钟再继续。
2) 使用 DNS 托管服务工具将您的裸域重定向到子域
此步骤将确保在转到 history-podcasts.com
时,用户将被重定向到 www.history-podcasts.com
对于 Google 个域,您可以按照本指南进行操作 here。
3) 将您的域添加到 Azure 网站
此步骤将向 Azure 保证您拥有该域,并且您希望可以使用指定的域名访问您的站点。
- 登录 https://manage.windowsazure.com/
- 导航
Websites -> [Your Website] -> Configure
- 向下滚动到
Domain names
- 单击
Manage Domains
(注意自定义域只能在共享、基本或标准模式下使用) - 添加您的域名
www.history-podcasts.com
此时您应该可以使用 history-podcasts.com
和 www.history-podcasts.com
域名访问您的网站。
如果您的网站需要 HTTPS,您将需要采取额外的步骤:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-configure-ssl-certificate/