We have an azure Application Gateway set up for Path Based routing and SSL offloading and we have multiple backend pools which are pointing to azure web apps. we would like to stop people accessing the web apps directly using the raw .azurewebsite.net URL. this is a very common requirement and easily achieved by blocking access if ".azurewebsites.net" is used in the url or redirecting to the actual domain. but when App Gateway is involved, this is not doable since the health probes will be using the .azurewebsites.net URL and the domain name is only used from app gateway level.
anyone has a solution for the above scenario ?