用于云服务请求的 Azure CDN 将转发到 <myapp>.cloudapp.net,而不是我的自定义主机名绑定(bind)

标签 azure azure-cdn

如上面标题所述,我有一个带有 WebRole 的云服务,该服务运行 Web 应用程序 www.myappname.com。我已采取所有必要步骤,使用 IIS 上的 url 重写模块从我的应用程序启用 CDN 内容服务。这工作正常,但是:

  1. 来自 CDN 的请求将转发到 .cloudapp.net,而不是我的自定义主机名绑定(bind)。我在我的配置中找不到任何可以更改此设置的地方。当我创建新的 CDN 端点时,用于设置 ORIGIN DOMAIN 的选项仅限于我的云服务端点
  2. 假设我的云服务 CDN 端点有一个自定义域名(例如 static.appnamecdn.com)。当我使用 https 发出请求时会发生什么?我没有看到任何地方可以注册“static.appnamecdn.com”的 ssl 证书。难道不需要这样的东西吗?

最佳答案

通过“创建 CDN 端点”屏幕(Azure 管理门户)上的帮助图标,我得到了对上面第二点的回答:

If you choose to enable HTTPS for your CDN endpoint, keep in mind the following points:

  • You must use the certificate provided by the CDN. Third party certificates are not supported.
  • You must use the CDN domain to access content. HTTPS support is not available for custom domain names (CNAMEs) since the CDN does not support custom certificates at this time.
  • HTTPS is from the CDN to the client only. Requests from the CDN to the content provider (Storage Account or hosted service) are still made using HTTP.

关于用于云服务请求的 Azure CDN 将转发到 <myapp>.cloudapp.net,而不是我的自定义主机名绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21310089/

相关文章:

sql-server - Sql Server Azure PERMISSION_SET = EXTERNAL_ACCESS 或 UNSAFE

c# - Azure RelayManagementClient 的 ManagedIdentityCredential

azure - 表存储服务(Azure 的 nosql 实现)与 Windows Azure 缓存(非结构化内存缓存)

azure - 无法让应用服务 CDN 与身份验证一起使用

Azure 负载均衡器 - 使用 ARM 模板将现有 VM 添加到 Azure 负载均衡器

azure - 本地 SQL Server 实例和 Azure SQL Server 中的 LoadData 脚本

c# - 关闭虚拟机会将所有虚拟机状态返回为未知

具有重写规则的 Azure CDN

azure-devops - 如何通过 ARM 模板在 Azure CDN 中的自定义域上启用 HTTPS

Azure CDN : Is it possible to have multiple end-points mapped to the same custom domain?