【问题标题】:The 3-level Azure Traffic Manager doesn't work3 级 Azure 流量管理器不起作用
【发布时间】:2015-07-20 00:09:13
【问题描述】:

我创建了一个 3 级 Azure 流量管理器。但它不起作用。

在顶层,它称为myroot.trafficmanager.net。 在中间层,有 2 个嵌套的流量管理器配置文件,称为 mysub1.trafficmanager.netmysub2.trafficmanager.net。 在底层,每个嵌套的流量管理器配置文件都有 2 个端点,即 Azure 网站。

顶级的平衡方法是Round Robin。 中间层的平衡方式是Performance。

我使用 Azure PowerShell cmdlet 创建顶层和中间层之间的映射。

PS C:\> Get-AzureTrafficManagerProfile -Name “myroot"
PS C:\> $TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "myroot"
PS C:\> Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "mysub1.trafficmanager.net" -Status "Enabled" -Type "TrafficManager" | Set-AzureTrafficManagerProfile
PS C:\> $TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "myroot"
PS C:\> Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "mysub2.trafficmanager.net" -Status "Enabled" -Type "TrafficManager" | Set-AzureTrafficManagerProfile

上述命令完成后。我可以使用nslookup myroot.trafficmanager.net 命令查看IP 已被定向到正确的端点。但是当我在浏览器中打开myroot.trafficmanager.net 时,我得到了错误:

错误 404 - 未找到 Web 应用程序。

如果有人能给我任何线索,我将不胜感激。

【问题讨论】:

    标签: azure azure-traffic-manager


    【解决方案1】:

    这很可能是因为您的顶级流量管理器域 (myroot.trafficmanager.net) 未作为自定义域映射到您的 Web 应用程序(网站)。这是因为,您的网站只知道mysub1.trafficmanager.net)。

    您可以通过使用自定义域和正确的map your custom domain to your Azure Web App 来解决您的问题。然后,还有map your custom domain to your Traffic Manager Domain

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-05
      • 2023-03-25
      • 2013-12-05
      • 1970-01-01
      • 2017-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多