问题
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