0

I acquired a new domain name in Azure (let's say mynewdomain.net), assigned it to my app service, bought a certificate also in Azure and made the bindings. Apparently both the domain and certificate are properly configured.

When I invoke the domain in any browser like https://mynewdomain.net, I get redirected to https://mynewdomain.net/mynewdomain.net, and of course fails.

The problem must be very simple, but I have no clue! Can anyone point me in the right direction here?

Thanks!

jdisla
  • 139
  • 6
  • i think domain mapping has gone wrong here. this is usually a issue in the DNS records and not on azure. if I were you, I would start investigating at the DNS records from the website company where you bought the domain – Jay Sep 30 '20 at 07:05

1 Answers1

0

To create a CNAME mapping for the www subdomain, create two records: CNAME and TXT records.

After you add the CNAME and TXT records, the DNS records page looks like the following example:

enter image description here

To map an A record, you need the app's external IP address. You can find this IP address on the app's Custom Domains page in the Azure portal.

After the records are added, the DNS records page looks like the following example: enter image description here

For more details, you could refer to this article about mapping an existing custom DNS name to Azure App Service.

Joey Cai
  • 18,968
  • 1
  • 20
  • 30
  • Fixed! I compared your the sites settings with yours and they matched. Turns out it was the code in the Default.aspx page that was manipulating the redirection based on the domain invoked as this app has multiple domains associated. Thank you very much Joey! – jdisla Oct 01 '20 at 08:16