gpt4 book ai didi

Azure 静态网站到 CDN 终结点映射未显示

转载 作者:行者123 更新时间:2023-12-03 05:43:56 30 4
gpt4 key购买 nike

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

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

索引文档:index.html

错误文档:index.html

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

我创建了一个 CDN profileStandard Microsoft profile .

添加了endpoint详细信息如下

来源类型:storage

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

原始路径:/index.html

原始主机 header :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但仍然无法正常工作

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

我还缺少什么?

最佳答案

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

来源类型:Custom origin

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

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

原始路径:默认。

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

引用号:Tutorial: Use Azure CDN to enable a custom domain with SSL for a static website

关于Azure 静态网站到 CDN 终结点映射未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56437554/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com