Microsoft Azure - 使用我的网络应用程序使用自定义域获取404页面 [英] Microsoft Azure - Getting a 404 page using custom domain with my web app

查看:533
本文介绍了Microsoft Azure - 使用我的网络应用程序使用自定义域获取404页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试访问我的网络应用程序(设置自定义域)而没有www时,我正在开发一个Azure网站的问题。 (与www。网站工作正常)。 NS查询显示,当使用裸域(infratecheng.com)时,结果与查找完整域(www.infratecheng.com)时的结果不同。
NS Lookup http://www.cassey.org/nslookup.png

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). NS Lookup http://www.cassey.org/nslookup.png

自定义域已按照蔚蓝门户网站上的说明进行设置。

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?

非常感谢

推荐答案

最可能的问题是您只将 www.infratecheng.com 添加为Azure Web App的主机名,但没有添加 infratecheng.com 。所以当Azure获得请求到 infratecheng.com 时,它不知道任何可以处理它们的站点,并返回404。

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.

这篇关于Microsoft Azure - 使用我的网络应用程序使用自定义域获取404页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆