Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure CDN default document 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 ..

Thank you

like image 485
fran6 Avatar asked Dec 22 '15 10:12

fran6


1 Answers

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.

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/.

like image 160
Gaurav Mantri Avatar answered Sep 21 '22 23:09

Gaurav Mantri