gpt4 book ai didi

Azure CDN 默认文档index.html

转载 作者:行者123 更新时间:2023-12-02 13:51:49 25 4
gpt4 key购买 nike

我现在已经在 CDN 中成功设置了我的静态网站,有没有办法指定index.html是默认文档?这是一个只有 1 页的网站,我只想浏览到根 url,而无需输入/index.html ..

谢谢

最佳答案

基于您的previous question ,我假设您已将 CDN 设置为映射到 Blob 存储。如果这是正确的,那么遗憾的是,到目前为止这是不可能的,因为 Azure 存储不支持默认文档。这是 Azure 反馈中最受欢迎的功能之一 - https://feedback.azure.com/forums/217298-storage/suggestions/1180039-support-a-default-blob-for-blob-storage-containers但仍悬而未决。

如果您愿意,您可以创建一个适当的网站(而不是将此 index.html 文件存储在 Blob 存储中)并通过 CDN 提供该网站。您可以在这里找到更多详细信息:https://azure.microsoft.com/en-in/documentation/articles/cdn-websites-with-cdn/ .

关于Azure CDN 默认文档index.html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34413300/

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