Azure CDN默认文档index.html [英] Azure CDN default document index.html
问题描述
我现在已经在CDN中成功安装了我的静态网站,
有没有办法指定index.html是默认文档?
这是一个1页的网站,我只是想浏览到根URL,而不必键入/index.html ..
I have now successfully setup my static website in a CDN, Is there a way to specify that index.html is the default document ? It is a 1 page site I just would like to browse to the root url without having to type /index.html ..
谢谢
推荐答案
根据您的上一个问题,我假设您已将CDN设置为映射到blob存储。如果这是正确的,不幸的是从今天起是不可能的,因为Azure Storage没有对默认文档的支持。这是Azure反馈中最需要的功能之一 - https://feedback.azure.com/forums/217298-storage/suggestions/1180039-support-a-default-blob-for-blob-storage-containers 然而它仍然在等待。
Based on your previous question, I am assuming that you have set CDN to map to blob storage. If this is correct, unfortunately it is not possible as of today because Azure Storage does not have a support for default document. This is one of the most requested feature on Azure Feedback - https://feedback.azure.com/forums/217298-storage/suggestions/1180039-support-a-default-blob-for-blob-storage-containers however it is still pending.
如果需要,您可以创建一个适当的网站(而不是将此index.html文件放在blob存储中),并通过CDN提供该网站。您可以在这里找到更多详细信息: https: //azure.microsoft.com/en-in/documentation/articles/cdn-websites-with-cdn/ 。
If you want, you can create a proper website (instead of having this index.html file in blob storage) and serve that website via CDN. You can find more details about it here: https://azure.microsoft.com/en-in/documentation/articles/cdn-websites-with-cdn/.
这篇关于Azure CDN默认文档index.html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!