Support a default blob for Blob storage containers
Blob storage is, in effect, a big massive scale static web server. THis makes it very suitale for directly serving certain types of static web sites that may be hit by a big spike in load. The one statis web server feature missing that is really hard to work around is a lack of a default document.
It should be possible to set a single blob in each container as the default blob and this should be returned if the HTTP GET request provides only the container name.
Some websites don't require any compute and could be run completely out of blob store (we do this on AWS) All it requires is for blob store containers to support a default page, a custom 404 page and custom domains.
i have a container called widgets and i set me default blob to default.jpg. If i request a blob from the widgets container and it doesn't exist, return default.jpg. Allow me to disable this feature if using the API but allow it to continue to work when navigating urls.
I love that we added support for the $root container, but it would be even better if we could have a “root” blob in the root container (and others).
This would provide the logical equivalent of a default document (index.htm, etc.).
I love your idea. Thank you. I hope someone at Windows Azure team my get excited about it as well.
One of the most underrated features! Great job!
Another suggestion would be when routing to a the root url, it fallbacks on whatever you specify image or .html
several others have made this suggestion too...
Yingwei Yang commented
there is another feature same as this one: http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting/suggestions/1180039-support-a-default-blob-for-blob-storage-containers?ref=title
is there a way to merge the two and add up the vote?
Tan Silliksaar commented
Jeff G. Young - jeffcodes.net commented
From my forum post:
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 serve 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
I agree. S3 just added support for root documents. We need it too! I need to be able to put index.html (or index.htm) on my site and avoid having to type it into the URL.
Ameer Deen commented
I saw this idea: http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting/suggestions/410922-support-root-blobs?ref=title and voted for that one instead. Turns out yours is the same. Can you vote for the other one as well since it's 91st ranked now ?