Skip to content

Commit 126d043

Browse files
authored
Merge pull request #294495 from stevenmatthew/staticsite021125
staticsite021125
2 parents 7212d73 + 5cc0928 commit 126d043

6 files changed

+11
-10
lines changed
82.3 KB
Loading
32.3 KB
Loading
118 KB
Loading
45.9 KB
Loading

articles/storage/blobs/storage-blob-static-website.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,31 @@ ms.service: azure-blob-storage
66
ms.topic: how-to
77
ms.author: shaas
88
ms.reviewer: dineshm
9-
ms.date: 11/21/2024
10-
ms.custom:
9+
ms.date: 02/12/2025
1110
---
1211

1312
# Static website hosting in Azure Storage
1413

15-
You can serve static content (HTML, CSS, JavaScript, and image files) directly from a storage container named *$web*. Hosting your content in Azure Storage enables you to use serverless architectures that include [Azure Functions](../../azure-functions/functions-overview.md) and other Platform as a service (PaaS) services. Azure Storage static website hosting is a great option in cases where you don't require a web server to render content.
14+
Azure Blob Storage is ideal for storing large amounts of unstructured data such as text, images, and videos. Because blob storage also provides static website hosting support, it's a great option in cases where you don't require a web server to render content. Although you're limited to hosting static content such as HTML, CSS, JavaScript, and image files, you can use serverless architectures including [Azure Functions](../../azure-functions/functions-overview.md) and other Platform as a service (PaaS) services.
1615

1716
[!INCLUDE [static websites vs static web apps](../../../includes/storage-blob-static-website-vs-static-web-app.md)]
1817

1918
If you need a web server to render content, you can use [Azure App Service](https://azure.microsoft.com/services/app-service/).
2019

2120
## Setting up a static website
2221

23-
Static website hosting is a feature that you have to enable on the storage account.
22+
Static website hosting functionality is configured within a storage account and isn't enabled by default. To enable static website hosting, select a storage account. In the left navigation pane, select **Static website** from the **Data management** group, and then select **Enabled**. Provide a name for your *Index document name*. You can optionally provide a path to a custom 404 page. Finally, select **Save** to save your configuration changes.
2423

25-
To enable static website hosting, select the name of your default file, and then optionally provide a path to a custom 404 page. If a blob storage container named **$web** doesn't already exist in the account, one is created for you. Add the files of your site to this container.
24+
:::image type="content" source="media/storage-blob-static-website/storage-blob-static-website-enable-sml.png" alt-text="Screenshot showing the locations used to enable static website hosting on a storage account." lightbox="media/storage-blob-static-website/storage-blob-static-website-enable-lrg.png":::
2625

27-
For step-by-step guidance, see [Host a static website in Azure Storage](storage-blob-static-website-how-to.md).
26+
A blob storage container named **$web** is created for you within the storage account if it doesn't already exist. Add your website's files to the **$web** container to make them accessible through the static website's primary endpoint.
2827

29-
![Screenshot showing how to enable static website hosting on a storage account using a blob storage container](./media/storage-blob-static-website/storage-blob-static-website-blob-container.png)
28+
:::image type="content" source="media/storage-blob-static-website/storage-blob-static-website-blob-container-sml.png" alt-text="Screenshot showing how to enable static website hosting on a storage account using a blob storage container." lightbox="media/storage-blob-static-website/storage-blob-static-website-blob-container-lrg.png":::
3029

3130
Files in the **$web** container are case-sensitive, served through anonymous access requests and are available only through read operations.
3231

32+
For step-by-step guidance, see [Host a static website in Azure Storage](storage-blob-static-website-how-to.md).
33+
3334
## Uploading content
3435

3536
You can use any of these tools to upload content to the **$web** container:
@@ -46,7 +47,7 @@ You can use any of these tools to upload content to the **$web** container:
4647

4748
Users can view site content from a browser by using the public URL of the website. You can find the URL by using the Azure portal, Azure CLI, or PowerShell. See [Find the website URL](storage-blob-static-website-how-to.md#portal-find-url).
4849

49-
The index document that you specify when you enable static website hosting appears when users open the site and don't specify a specific file (For example: `https://contosoblobaccount.z22.web.core.windows.net`).
50+
The index document that you specify when you enable static website hosting appears when users open the site and don't specify a specific file (For example: `https://contosostaticsite.z22.web.core.windows.net`).
5051

5152
If the server returns a 404 error, and you haven't specified an error document when you enabled the website, then a default 404 page is returned to the user.
5253

@@ -63,9 +64,9 @@ You can modify the anonymous access level of the **$web** container, but making
6364

6465
While the primary static website endpoint isn't affected, a change to the anonymous access level does impact the primary blob service endpoint.
6566

66-
For example, if you change the anonymous access level of the **$web** container from **Private (no anonymous access)** to **Blob (anonymous read access for blobs only)**, then the level of anonymous access to the primary static website endpoint `https://contosoblobaccount.z22.web.core.windows.net/index.html` doesn't change.
67+
For example, if you change the anonymous access level of the **$web** container from **Private (no anonymous access)** to **Blob (anonymous read access for blobs only)**, then the level of anonymous access to the primary static website endpoint `https://contosostaticsite.z22.web.core.windows.net/index.html` doesn't change.
6768

68-
However, anonymous access to the primary blob service endpoint `https://contosoblobaccount.blob.core.windows.net/$web/index.html` does change, enabling users to open that file by using either of these two endpoints.
69+
However, anonymous access to the primary blob service endpoint `https://contosostaticsite.blob.core.windows.net/$web/index.html` does change, enabling users to open that file by using either of these two endpoints.
6970

7071
Disabling anonymous access on a storage account by using the [anonymous access setting](anonymous-read-access-prevent.md#set-the-storage-accounts-allowblobpublicaccess-property-to-false) of the storage account doesn't affect static websites that are hosted in that storage account. For more information, see [Remediate anonymous read access to blob data (Azure Resource Manager deployments)](anonymous-read-access-prevent.md).
7172

0 commit comments

Comments
 (0)