Since your domain was working and you changed it, have a look at Migrate an active DNS name to Azure App Service documentation. You need to add a CNAME record that points www.subdomain.mysite.com to your app service in your DNS registrar. I would, however, suggest using a wildcard e.g. *.mysite.com assuming subdomain isn't a separate app service.
Azure web app custom domain problem
Dr. Ahmed Qusay Sabri
1
Reputation point
i have an Azure web app and I give it a custom domain name like (www.mysite.com), then i change the custom domain name to the name (www.subdomin.mysite.com), the problem i can not reach the first domain name (www.mysite.com) it gives the following:
404 Web Site not found.
You may be seeing this error due to one of the reasons listed below :
Custom domain has not been configured inside Azure. See how to map an existing domain to resolve this.
Client cache is still pointing the domain to old IP address. Clear the cache by running the command ipconfig/flushdns.
1 answer
Sort by: Most helpful
-
Ryan Hill 25,666 Reputation points Microsoft Employee
2021-09-24T12:44:17.3+00:00