Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Azure Front Door Url Redirect to AppService Url For ReactJs App

I have setup Frontdoor with app service and also deployed the ReactJsapp and Asp.net APIs in the two different subdirectory like site\wwwroot\webapp and site\wwwroot\api. The problem is that when I use the azure frontdoor url example.azurewebfd.net/webapp then It direct to the example.azurewebsite.net/webapp. It works fine for api and It doesn't redirect to the example.azurewebsite.net/api and it keeps example.azurefd.net/api.

How could solve this problem ?

like image 697
Bhoopesh Tyagi Avatar asked Feb 28 '20 11:02

Bhoopesh Tyagi


People also ask

Why are my Azure App services being redirected to application gateway?

You have Azure Active Directory authentication, which causes the redirection. Also, when you use app services behind an application gateway, the domain name associated with the application gateway (example.com) is different from the domain name of the app service (say, example.azurewebsites.net).

What is URL redirection in azure front door?

This article specifically introduces the usage of URL redirection in Azure Front Door. URL redirection is mainly used to redirect users to a new location of a resource. The most common case is that the URL of the resource has changed, and the old URL in the search engine, other websites, or the user's browser favorites has not been updated.

How do I redirect to a custom domain in Azure App service?

The REDIRECT_URI place holder should be our external redirect URL (URL escaped, i.e. with %2f instead of forward slashes). We should also be prompted with a login screen and a Permissions requested screen. If we click ok, we should be redirected to our custom domain with the content of an empty Azure App Service:

Is it possible to access app service from Azure front door?

If you simply deploy App Service (s) behind Azure Front Door, everyone can access App Service directly without using Azure Front Door. Therefore, we have to configure permit only access from Azure Front Door at App Service. If you were me, what do you think is a good solution? What is Azure Front Door?


1 Answers

I would like to see a solution on this too. I've been researching this topic awhile now, and it seems that there is a lack of reported problems/guides on this matter. It is clearly defined for ApplicationGatway which faces the same problem. https://learn.microsoft.com/en-us/azure/application-gateway/troubleshoot-app-service-redirection-app-service-url Cant seem to find these options for Front Door.

like image 102
Christian Holm Avatar answered Nov 03 '22 13:11

Christian Holm