AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Website file storage7/30/2023 ![]() ![]() However, the public access to the primary blob service endpoint $web/index.html does change from private to public. While the primary static website endpoint isn't affected, a change to the public access level does impact the primary blob service endpoint.įor example, if you change the public access level of the $web container from Private (no anonymous access) to Blob (anonymous read access for blobs only), then the level of public access to the primary static website endpoint doesn't change. That means public (read-only) access to all files. You can modify the public access level of the $web container, but making this modification has no impact on the primary static website endpoint because these files are served through anonymous access requests. Impact of setting the access level on the web container Therefore, the files that are available at the secondary endpoint aren't always in sync with the files that are available on the primary endpoint. Data is replicated to secondary regions asynchronously. ![]() ![]() If you set up redundancy in a secondary region, you can also access website content by using a secondary endpoint. You can use any of these tools to upload content to the $web container:Ĭross-Origin Resource Sharing (CORS) support for Azure Storage is not supported with static website. Add the files of your site to this container.įor step-by-step guidance, see Host a static website in Azure Storage.įiles in the $web container are case-sensitive, served through anonymous access requests and are available only through read operations. If a blob storage container named $web doesn't already exist in the account, one is created for you. To enable static website hosting, select the name of your default file, and then optionally provide a path to a custom 404 page. Static website hosting is a feature that you have to enable on the storage account. If you need a web server to render content, you can use Azure App Service. Azure Static Web Apps also provides a fully managed continuous integration and continuous delivery (CI/CD) workflow from GitHub source to global deployment. You can configure headers and AuthN / AuthZ is fully supported. It's a great alternative to static websites and is also appropriate in cases where you don't require a web server to render content. If these features are important for your scenario, consider using Azure Static Web Apps. There's no way to configure headers as part of the static website feature itself. For example, If you want to configure headers, you'll have to use Azure Content Delivery Network (Azure CDN). Azure Storage static website hosting is a great option in cases where you don't require a web server to render content. Hosting your content in Azure Storage enables you to use serverless architectures that include Azure Functions and other Platform as a service (PaaS) services. You can serve static content (HTML, CSS, JavaScript, and image files) directly from a storage container named $web. ![]()
0 Comments
Read More
Leave a Reply. |