Microsoft Azure - Getting a 404 page using custom domain with my web app

☆樱花仙子☆ 提交于 2020-01-17 04:17:49

问题


There's an issue with an Azure website I'm working on where I get an azure 404 page when trying to access my web app (set up with a custom domain) without www. (with www. the site works fine). NS lookup shows that when using the naked domain (infratecheng.com) the results are different than when looking up the full domain (www.infratecheng.com).
(source: cassey.org)

The custom domain has been set up as per the instructions on the azure portal.

I wonder if this is a problem with configuration within azure or is it a problem with my domain provider settings?

Many thanks


回答1:


Most likely, the problem is that you only added www.infratecheng.com as a host name for your Azure Web App, but did not add infratecheng.com. So when Azure gets requests to infratecheng.com, it doesn't know about any site that can handle them, and returns a 404.



来源:https://stackoverflow.com/questions/33476220/microsoft-azure-getting-a-404-page-using-custom-domain-with-my-web-app

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