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 ?
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).
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.
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:
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With