Share via

images + cdn

Jamal AbdelRahim 0 Reputation points
2026-03-17T11:44:02.8366667+00:00

Title:__ Azure Front Door 404/Conflict Errors with Blob Storage Origin

Description: I am facing an issue where media assets (images) stored in Azure Blob Storage are not loading via Azure Front Door (AFD) custom domain (PII).

Current Setup & Verification:

Origin: Azure Blob Storage (PII.blob.core.windows.net).

Public Access: Verified. Anonymous Blob access is enabled on the container level. Images load correctly via the direct Storage URL.

AFD Configuration:

Origin Group: Points to the correct storage account.

Health Probes: Disabled (to accommodate Blob Storage behavior).

Caching: Enabled (Ignore Query String).

__Route:__ Pattern to match is `/*`.

The Problems Encountered:

404 Errors: Requests through AFD return 404, even though the file exists in the storage path.

Routing Conflict: When attempting to update/create routes, I receive a "Conflict with default-route" error, preventing me from correctly mapping the custom domain to the storage origin group.

Purge Issues: Cache purging has been performed but does not resolve the 404s.

Requested Assistance: Please help resolve the routing conflict and ensure the AFD profile correctly maps the cdn subdomain to the storage origin without path mismatches.

Azure Front Door
Azure Front Door

An Azure service that provides a cloud content delivery network with threat protection.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vallepu Venkateswarlu 6,555 Reputation points Microsoft External Staff Moderator
    2026-03-17T13:26:40.2366667+00:00

    Hi @ Jamal AbdelRahim,

    Welcome to Microsoft Q&A Platform.

    If you are unable to create a new route due to a conflict with the built-in default-route.

    Host Header Mismatch → 404 Error: By default, Azure Front Door (AFD) forwards the original Host header (xxxx.xxx-txxxts.com) to your storage origin. However, Azure Blob Storage only serves requests when the Host header matches:

    <storageAccount>.blob.core.windows.net
    

    User's image

    Because of this mismatch, the request is rejected with a 404 error.

    In your origin settings-->Enable “Override backend host header” (or “Origin host header override”) and Set it to:

    
    <storageAccount>.blob.core.windows.net
    

    This ensures that Front Door uses the correct storage FQDN when fetching blobs, resulting in a 200 response.

    The Route Conflict with Default Route-In Standard/Premium Front Door, a default-route is created automatically. Any new route with overlapping settings (such as /* path or wildcard domains) will cause a conflict.

    Option 1: Edit the Existing Default Route (Recommended)

    Go to Front Door Designer → Routes--->Open default-route--->Under Custom domains, add below

    xxxxxx-ticxxs.com
    

    Under Origin groups, select your Blob Storage origin group--->Ensure the path pattern is:

    /*
    

    Save the configuration and wait a few minutes for propagation.
    User's image

    Option 2: Create a New Route with Non-Overlapping Criteria

    Go to Routes → + Add Route-->Provide a name (e.g., cdn-route)-->Configure the following:

    • Accepted protocols: HTTP/HTTPS
    • Custom domains: cdn.pass-tickets.com
    • Patterns to match: /*
    • Forwarding: Select your Blob Storage origin group
    • Enable host header override as mentioned earlier
    • Click Save

    After configuring the settings, purge the Front Door cache and wait 5–10 minutes for propagation. Then, test again using your custom domain.

    If you still get a 404 after this, the problem is almost always host header override not applied correctly or route not attached to the correct domain—worth double-checking before going deeper.

    Ref: Integrate an Azure Storage account with Azure Front Door

    Note: If the above steps did not help resolve your issue, please feel free to share the details in a private message so we can proceed with further troubleshooting over a Teams call. I am happy to connect with you on Teams to investigate and resolve the issue.

    0 comments No comments

Your answer

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