Azure front door routing multiple Static Web Apps with common azure front door domain name

2024-05-15T14:41:52.39+00:00

I have 3 Azure static web apps with different domain names, for example,

www.application1.com, www.application2.com, and www.application3.com.

I want to configure these apps in Azure's front door with the domain "www.common.com" and all the apps must be navigated through

  1. www.common.com/application1,
  2. www.common.com/application2,
  3. www.common.com/application3

I have created origin and routes (Pattern application1 to the origin www.application1.com) Azure Front Door for each app having path www.common.com/application1,

The Azure front door always takes me to www.application1.com when I navigate to the URL www.common.com/application1.

I want to keep the domain name of Azure front door (www.common.com/application1 ) in the browser instead of redirecting the user to www.application1.com

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
701 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,005 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 26,546 Reputation points Microsoft Employee
    2024-05-17T16:09:50.3766667+00:00

    @Sakkaravarthy Muniyasamy - Contractor

    Thank you for sharing the requested details here. I see that you have set Health Probe Path above to /assets/*Can you change this path to some definite for example to /assets/test.aspx ? I do not think wildcard will be supported in the health probe path.

    Snippet from your question above:

    User's image

    As documenetd here "A 200 OK status code indicates the origin is healthy. Any other status code is considered a failure. If for any reason a valid HTTP response isn't received for a probe, the probe is counted as a failure."

    So, in your case above the health probe will be sent to /assets/* path which will not return a 200 response. It is also recommended that you follow this best practices document here for health probe endpoints

    Hope this helps. Please let me know if the issue still persists. Thanks

    0 comments No comments

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.