You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/storage-blob-static-website.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,31 @@ ms.service: azure-blob-storage
6
6
ms.topic: how-to
7
7
ms.author: shaas
8
8
ms.reviewer: dineshm
9
-
ms.date: 11/21/2024
10
-
ms.custom:
9
+
ms.date: 02/12/2025
11
10
---
12
11
13
12
# Static website hosting in Azure Storage
14
13
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.
16
15
17
16
[!INCLUDE [static websites vs static web apps](../../../includes/storage-blob-static-website-vs-static-web-app.md)]
18
17
19
18
If you need a web server to render content, you can use [Azure App Service](https://azure.microsoft.com/services/app-service/).
20
19
21
20
## Setting up a static website
22
21
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.
24
23
25
-
To enable staticwebsite 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":::
26
25
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.
28
27
29
-

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":::
30
29
31
30
Files in the **$web** container are case-sensitive, served through anonymous access requests and are available only through read operations.
32
31
32
+
For step-by-step guidance, see [Host a static website in Azure Storage](storage-blob-static-website-how-to.md).
33
+
33
34
## Uploading content
34
35
35
36
You can use any of these tools to upload content to the **$web** container:
0 commit comments