Configuring custom domain for Azure Web App

2019-09-12 13:51发布

I configured my custom domain to work with my Azure Web app and it's working but NOT with www.

So mydomain.com points to myapp.azurewebsites.net and it works but if I type www.mydomain.com, it gives me "Error 404 - Web App Not Found" error.

Here's what I have configured:

  1. My domain is registered with GoDaddy and I have an A record pointing to the IP address I copied from my Azure Web App.
  2. I also have a CNAME record awverify pointing to awverify.myapp.azurewebsites.net
  3. I have my CNAME record pointing to myapp.azurewebsites.net
  4. I then added mydomain.com and www.mydomain.com to the custom domains blade through the new Azure portal

Any idea I can pull up my web app using mydomain.com but NOT www.mydomain.com?

1条回答
Evening l夕情丶
2楼-- · 2019-09-12 14:19

Even though I entered the www.mydomain.com under custom domain under my web app's settings, for some reason it didn't save it which is why www was not working.

查看更多
登录 后发表回答