none
Is there a way to do a default document for a blob container, like mapping to index.htm RRS feed

  • Question

  • Since there is a "trick" to create blobs in the root of a storage account ("$root"), I was hoping there was a trick to create a default document for a blob container.  Maybe "$default" or something like that?

    I would like to server requests at the root of the storage account with a particular blob.  So, if I used a CNAME record to map www.mydomain.com to mydomain.blob.core.windows.net, then requests to http://www.mydomain.com could retrieve this default blob.

    The scenario I want to enable is CDN caching of the first page hit for a site, which will be a very small bootstrapping page that puts up a loading indicator then pulls more CDN cached data as well as live data from my windows azure web role.  But I need to support http://www.mydomain.com alone, not just http://www.mydomain.com/index.htm

    And of course, using any kind of redirect to get to http://www.mydomain.com would seriously undermine the value of this scenario.

    If this feature doesn't exist, I suggest it should.

     


    Jeff G. Young @jeffcodes http://jeffcodes.net
    Monday, January 3, 2011 9:57 PM

Answers

  • No, there isn't a way to do this.  I believe there's already a suggestion for this on http://mygreatwindowsazureidea.com... if so, vote it up.  (If not, add one!)
    • Marked as answer by Mog Liang Tuesday, January 11, 2011 6:21 AM
    Tuesday, January 4, 2011 1:31 AM

All replies

  • No, there isn't a way to do this.  I believe there's already a suggestion for this on http://mygreatwindowsazureidea.com... if so, vote it up.  (If not, add one!)
    • Marked as answer by Mog Liang Tuesday, January 11, 2011 6:21 AM
    Tuesday, January 4, 2011 1:31 AM
  • This is the suggestion you need to vote on: https://feedback.azure.com/forums/217298-storage/suggestions/6417741-static-website-hosting-in-azure-blob-storage#{toggle_previous_statuses}

    Someone else also suggests using Azure Function to provide default file resolution: https://blog.maximerouiller.com/post/hosting-static-site-for-cheap-on-azure-with-storage-and-serverless/

    Wednesday, April 25, 2018 10:34 PM