Configuring custom domain for Azure Web App

风流意气都作罢 提交于 2019-12-12 01:24:25

问题


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:


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.



来源:https://stackoverflow.com/questions/31280511/configuring-custom-domain-for-azure-web-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!