简体   繁体   English

Azure 前门自定义域停机

[英]Azure front door custom domain downtime

In the azure tutorial for setting up a custom domain for the azure front door , few areas got me confused在为 azure 前门设置自定义域的 azure 教程中,很少有区域让我感到困惑

  1. A brief period of downtime for the domain can occur.域可能会出现短暂的停机时间。
  2. A custom domain and its sub-domain can be associated with only a single Front Door at a time.自定义域及其子域一次只能与一个 Front Door 关联。
  3. The custom domain also must have routing rule with a default path ('/*') associated with it自定义域还必须具有与其关联的默认路径 ('/*') 的路由规则

We have a production site running that has multiple subdomains.我们有一个正在运行的生产站点,它有多个子域。 I need to map one subdomain with one front door.我需要 map 一个子域和一个前门。 For example, we have https://web.contoso.com , https://api.contoso.com , https://admin.constoso.com . For example, we have https://web.contoso.com , https://api.contoso.com , https://admin.constoso.com . We have created a frontend for APIs services.我们为 API 服务创建了一个前端。 https://busymonk.azurefd.net . https://busymonk.azurefd.net

Now we need to CNAME only api.contoso.com with busymonk.azurefd.net.现在我们只需要使用 busymonk.azurefd.net 对 api.contoso.com 进行 CNAME。 Is the said domain downtime going to occur for the main domain and other subdomains?主域和其他子域是否会发生上述域停机?

How I should add the routing for the custom domain.我应该如何为自定义域添加路由。 Even this example got me confused.甚至这个例子也让我感到困惑。 Do I need to add routing between custom domain and my backend pool, or do I need to make a backend pool of https://busymonk.azurefd.net and then add routing between api.contoso.com to busymonk.azurefd.net? Do I need to add routing between custom domain and my backend pool, or do I need to make a backend pool of https://busymonk.azurefd.net and then add routing between api.contoso.com to busymonk.azurefd.net?

When you need only api.contoso.com with your CDN endpoint, only the subdomain api.contoso.com may have downtime. When you need only api.contoso.com with your CDN endpoint, only the subdomain api.contoso.com may have downtime.

To avoid interruption of web traffic, you could first map the temporary afdverify sub-domain .为避免 web 流量中断,您可以先map 临时 afdverify 子域 With this method, users can access your domain without interruption while the DNS mapping occurs.使用此方法,用户可以在 DNS 映射发生时不间断地访问您的域。

Source                      Type    Destination
afdverify.api.contoso.com   CNAME   afdverify.busymonk.azurefd.net

If you have verified that the afdverify subdomain has been successfully mapped to your Front Door.如果您已验证afdverify子域已成功映射到您的 Front Door。 Then you could map the permanent custom domain .然后你可以map 永久自定义域 After this, you could delete the temporary afdverify subdomain CNAME record.在此之后,您可以删除临时的afdverify子域 CNAME 记录。

Once you add the custom domain for api.contoso.com with the front door.使用前门添加api.contoso.com的自定义域后。 It's up to you.由你决定。 You only need to make sure there is a path from the frontend hosts to the backend pools via valid routing rules.您只需要确保通过有效的路由规则从前端主机到后端池的路径。

For example, to make the custom domain api.contoso.com work, you need to add a new routing rule or change existing routing rule to point to the domain api.contoso.com as the frontend hosts with a default path /* associated with it and select the existing the backend pool of your backend web app host like app service xxx.azurewebsites.net . For example, to make the custom domain api.contoso.com work, you need to add a new routing rule or change existing routing rule to point to the domain api.contoso.com as the frontend hosts with a default path /* associated with它和 select 现有的后端池 web 应用程序主机,如应用程序服务xxx.azurewebsites.net

Hope this could help you.希望这可以帮助你。

Be aware that if you use the afdverify approach and enable HTTPS using an AFD managed certificate, you'll be waiting an excessive amount of time for Digicert to validate the domain for certificate provisioning (24+ hours).请注意,如果您使用 afdverify 方法并使用 AFD 托管证书启用 HTTPS,您将等待 Digicert 验证域以进行证书配置(24 小时以上)的时间过长。 It appears to be a manual process on their end, and if your domain's WHOIS registrant email is not displayed b/c it's private, then you'll need to receive email at X@customdomain where X = admin, administrator, hostmaster, postmaster, or webmaster.这似乎是一个手动过程,如果您的域的 WHOIS 注册人 email 未显示 b/c 它是私有的,那么您需要在 X@customdomain 接收 email,其中 X = admin、administrator、hostmaster、postmaster、或网站管理员。 You'll be better off opening a ticket with Microsoft support over it, they'll work directly with Digicert to get your certificate provisioned.您最好在 Microsoft 支持下开票,他们将直接与 Digicert 合作以获取您的证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM