Azure web app custom domain problem

Dr. Ahmed Qusay Sabri 1 Reputation point
2021-09-24T11:41:48.893+00:00

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.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,875 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,666 Reputation points Microsoft Employee
    2021-09-24T12:44:17.3+00:00

    Hi @Dr. Ahmed Qusay Sabri ,

    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.