Set a default page (index.html) using Azure Front Door

Trevor Sullivan 20 Reputation points
2025-04-09T10:28:12.8333333+00:00
  • I have an Azure Front Door Standard SKU resource that's pointing to an Azure Storage Account as its origin.
  • Inside the Azure Storage Account, I created a blob container named website.
  • Inside that blob container, I have a single blob named index.html.
  • (screenshot) My Azure Front Door route (only have one) is set to match / and send all requests to /website.

User's image When I navigate to https://xyz-xxxxxxxxxxxxx.z02.azurefd.net/ I want to see index.html displayed. However, if I navigate to the root URL path, get a message saying:

The requested URI does not represent any resource on the server.

If I navigate specifically to https://xyz-xxxxxxxxxxxxx.z02.azurefd.net/index.html, then I see my index.html page contents correctly.

➡️ Question: How do I set the "default page" of Azure Front Door to index.html in this configuration?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
852 questions
{count} votes

Accepted answer
  1. Shravan Addagatla 1,530 Reputation points Microsoft External Staff Moderator
    2025-04-09T17:29:54.2533333+00:00

    Hello Trevor Sullivan

    Azure Front Door does not natively support "default documents" like index.html for Storage Account origins (unless using the Static Website). Since your content is in a blob container (website), you need to rewrite the root path (/) to /website/index.html using Front Door's URL rewrite feature.

    To configure Azure Front Door to serve index.html as the default page when accessing the front door URL, you can follow the below two options.

    Option 1: - You can configure the route on AFD with patterns to match as '/*' with origin path as '/website/index.html'

    User's image

    Option 2: You can configure the ruleset on AFD URL rewrite as shown below to meet your requirement.
    User's image

    We did the same test in our lab and observed the expected result.

    Storage blob URL: -User's image

    Azure Front door with root URL: -User's image

    I hope this has been helpful!

    If above is unclear and/or you are unsure about something add a comment below.

    Accepted answerPlease accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.