Azure Traffic Manager路由到Azure网站配置为外部端点

时间:2016-04-22 01:22:54

标签: azure-web-sites azure-traffic-manager

这就是我做的,

在标准层

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

配置Azure Traffic Manager并将端点添加为Azure端点。 Trafficmanager路由到网站。尼斯!

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

它出了什么问题? Azure是否允许将.azurewebsites.net站点定义为端点URL?

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

*enter image description here*

完整的错误页面详细信息,

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.

2 个答案:

答案 0 :(得分:3)

使用网站时,网站需要知道DNS请求的“主机”标头中预期的域名。这是用户在其浏览器中输入的域名。

在Traffic Manager中将网站添加为端点时,Traffic Manager域名(例如mysite.trafficmanager.net)会自动添加为您网站中的自定义域名。当您删除网站端点时,它将再次被删除。

但是,如果使用外部端点类型,则不会发生这种情况。由于网站无法识别主机标头中的域名,因此会返回404错误。

要完成这项工作,您需要使用CNAME在交通管理器前放置虚荣域名,在您的网站中注册虚荣域名,并使用浏览器中的虚荣域名。 (您无法手动将Traffic Manager域名添加到网站,因为您无法完成网站所需的所有权证明验证。)

答案 1 :(得分:0)

外部端点需要在Azure网站之外。