-1

I have created one azure web app service (S1:1), I have registered custom domain (TXT, CNAME & A records in DNS) for this site. I am able to access site using FQDN (https://xyz.pqr.com) but when I am using IP address to access this site it give me below error.

enter image description here

Why am I doing this? I want to redirect another application to this application using DNS resolver for that it make use of IP address.

1 Answers1

0

The 404 error occurs due to multiple reasons, please check the below to resolve the error:

  • Please check your domain resolves to the apps IP address by using whatsmydns.net
  • Please check whether the A record is pointing to the wrong IP address.
  • Check whether the custom domain is having correct A record and CNAME configured.
  • The old IP address may be cached, so trying to clear the cache.

Make sure the custom domain is present in the Azure App Service like below:

enter image description here

Please note that, using both a CNAME record and an A record for the same domain can cause a conflict and prevent the domain from being resolved.

Please check this MsDoc for few causes and solutions that may give you a pointer to solve the issue.

For more in detail, please refer below links:

Azure WebApps Custom Domain 404 error by AjayKumar-MSFT

Azure web app custom domain problem by Ryan Hill

Rukmini
  • 6,015
  • 2
  • 4
  • 14