Azure 流量管理器路由到配置为外部终结点的 Azure 网站

Azure Traffic Manager routing to Azure Website configured as External Endpoint

这是我所做的,

在标准层

中创建了一个 Azure 网站 (http://myapp1.azurewebsites.net)

已配置 Azure 流量管理器并将端点添加为 Azure 端点。 Trafficmanager 路由到网站。不错!

删除了端点并将端点添加为外部端点。 Trafficmanager 路由到 404 页面。我提供的 FQDN(完全限定域名)为 myapp1.azurewebsites.net.

有什么问题吗? Azure 是否不允许将 .azurewebsites.net 个站点定义为端点 URL?

端点详细信息, 状态 - 启用 监控状态 - 降级 类型 - 外部端点

完整的错误页面详情,

Error 404 - Web app not found.

The web app you have attempted to reach is not available in this Microsoft Azure App Service region. This could be due to one of several reasons:

1. The web app owner has registered a custom domain to point to the Microsoft Azure App Service, but has not yet configured Azure to recognize it. Click here to read more.

2. The web app owner has moved the web app to a different region, but the DNS cache is still directing to the old IP Address that was used in the previous region. Click here to read more.

外部终结点需要在 Azure 网站之外。

使用网站时,网站需要知道 DNS 请求的 'host' header 中期望的域名。这是用户在浏览器中输入的域名。

当您将网站添加为流量管理器中的端点时,流量管理器域名(例如 mysite.trafficmanager.net)将作为自定义域名自动添加到您的网站中。当您删除网站端点时,它会再次被删除。

但是,如果您使用外部终结点类型,则不会发生这种情况。因为网站无法识别hostheader中的域名,返回404错误

要完成这项工作,您需要使用 CNAME 在流量管理器前面放置一个虚域名,在您的网站上注册该虚域名,然后在您的浏览器中使用该虚域名。 (您无法手动将流量管理器域名添加到网站,因为您无法完成网站要求的 proof-of-ownership 验证。)