Hello,
I have an application hosted on Azure App Services using the .azurewebsites.net default url.
I deployed an Application Gateway as WAFv2 to get in front of the application. The rules work, I can browse to the application using the Application Gateway frontend. The thing is the url I get when redirected to the backend is the .azurewebsites.net and I would like to show my own domain when browsing through the Application Gateway public endpoint.
The DNS is setup correctly, browser to xxx.mydomain.com is sending me correctly to the Application Gateway but then I get the .azurewebsites.net url in my browser.
How can I change this behavior on the Application Gateway ? Is the Rewrite feature the solution ?
Should I import my custom DNS in the App Services ?
What is the best practice ?
Thank you in advance