How to download / install default.html page for storing Azure Blob?

First, how to upload a file to blob root? It seems I should upload the file to a container (which is the IMO folder)

Secondly, if I finally found a way to upload the file to root, would the default.html page (or another name) become the default page for the domain?

Thanks.

+6
source share
4 answers

There is a container named: $ root. See "Working with the root container" for details.

AFAIK, the blob repository cannot be used as a simple web server, so it cannot serve as default.html. To do this, you need an instance of the web role. Misguided Windows Azure Web, Worker, and VM Roles

+7
source

There is a special container name $root that you use to write to the root container. See this MSDN article for more information about this root container.

As long as you can store static web content in blob storage, there is no concept of a default object; that is, you cannot have something like default.html if a visitor goes to www.YourStaticSite.com. They need to visit www.YourStaticSite.com/default.html.

EDIT: As mentioned in @SantiagoIT, you need to place the default page somewhere (like a role on the Internet). Since you can move static content to blob storage (e.g. css, javascript, images and static html), this will reduce the load on your web role instances (since blob storage requests go directly to blob storage, bypassing your web role instances at all). Even if your site is hosted locally, you can use the blob repository for the same benefits.

Going further: when the content is in the blob repository, you can activate the CDN (edge ​​cache). For frequently visited content, this can lead to increased productivity for your end users.

+2
source

Others have noted the $ root container, and also that there is currently no default concept for blob.

I agree that it would be super helpful to maintain a default blob for each container, including the root container.

I have an open function request. http://feedback.azure.com/forums/217298-storage/suggestions/1180039-support-a-default-blob-for-blob-storage-containers#comments

+2
source

One of the motivations for adding the $ root folder to the blob was to support the Silverac clientaccesspolicy.xml file, as described in the MSDN documentation

+1
source

Source: https://habr.com/ru/post/904507/


All Articles