Azure CDN default document index.html

前端 未结 3 1583

I have now successfully setup my static website in a CDN, Is there a way to specify that index.html is the default document ? It is a 1 page site I just would like to brows

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 03:01

    This is now possible with Static websites on Azure Storage

    Creating a Static Website

    1. Navigate to your storage account
    2. Select Static Website from the blade and toggle to "enabled"

    3. Once you save, this will create a URL endpoint and also a bucket named $web to host your files

    4. Go to your $web storage container and upload any files you want

    Add CDN / Custom Domain

    1. Navigate to your CDN Profile and either Create / Edit your Endpoint
    2. Select 'Custom Origin' and use the 'Origin Hostname' that was created for your static site

    3. Give Azure up to 30 minutes to propagate all the settings

    Further Reading

    • Tutorial: Host a static website on Blob Storage
    • Tutorial: Use Azure CDN to enable a custom domain with SSL for a static website

提交回复
热议问题