【问题标题】:Azure Static Website to CDN endpoint maping not showingAzure 静态网站到 CDN 终结点的映射未显示
【发布时间】:2019-06-04 04:55:09
【问题描述】:

这是我的静态网站的详细信息

主端点:https://<mysorageac>.<zone>.web.core.windows.net/

索引文档:index.html

错误文档:index.html

当我导航到上面的链接时,它按预期工作。

我用Standard Microsoft profile 创建了一个CDN profile

添加了endpoint 并提供以下详细信息

来源类型:storage

源主机名:mystorageac.blob.core.windows.net

原始路径:/index.html

原始主机头:mystorageac.blob.core.windows.net

检查了http/https

优化:General Web Delivery

它使用https://myendpoint.azureedge.net成功生成了端点主机名

一小时后,我尝试导航到 https://myendpoint.azureedge.net,但出现错误“其中一个请求输入超出范围”

我什至尝试使用完整路径https://myendpoint.azureedge.net/$web/index.html

我更改了原始路径:/web - 给我“指定的资源不存在”

原始路径:/web/index.html - 给我“其中一个请求输入超出范围。”

我尝试了purgeall,但仍然无法正常工作

公共访问级别是Contain(Anonymus read access for containers and blobs)

我还缺少什么?

【问题讨论】:

    标签: azure azure-cdn


    【解决方案1】:

    要在 Azure 存储中添加静态网站,请在源类型下拉列表中选择自定义源。在 Azure 门户中,您需要从您的 Azure CDN 配置文件中执行此操作,而不是直接在您的存储帐户中。

    来源类型:Custom origin

    源主机名:<mysorageac>.<zone>.web.core.windows.net

    原始主机头:<mysorageac>.<zone>.web.core.windows.net

    源路径:默认。

    有时,这可能是传播问题。您需要等待几分钟,CDN 端点开始工作。

    参考:Tutorial: Use Azure CDN to enable a custom domain with SSL for a static website

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-25
      • 1970-01-01
      • 2020-08-02
      • 1970-01-01
      • 2020-04-06
      • 2015-03-24
      • 1970-01-01
      • 2016-10-31
      相关资源
      最近更新 更多