Azure的网站添加自定义域后,将返回404错误 [英] Azure website returns 404 error after adding custom domain

查看:131
本文介绍了Azure的网站添加自定义域后,将返回404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是共享模式托管在Azure网站。通过添加自定义域的过程后我似乎得到404浏览到www.mydomain.com

I'm using the Azure Websites hosting in shared mode. After going through the process of adding a custom domain I seem to be getting a 404 when browsing to www.mydomain.com

当我使用* .azurewebsites.net地址浏览到我的网站它呈现完美。我也打开所有可用的日志记录并不能看到在网络日志中的404错误或问题的任何其他标​​志。

When I browse to my site using the *.azurewebsites.net address it renders perfectly. I have also turned on all available logging and can't see the 404 errors in the web logs or any other signs of the problem.

要配置自定义域名我也跟着在说明这个页面,包括设置CNAME记录awverify.mysite.com和一个A记录到门户网站提供的IP地址。

To configure the custom domain name I followed instructions on this page, including setting up the CNAME record to awverify.mysite.com and an A record to the IP address provided in the portal.

我知道有上的其他问题,如或<一个href=\"http://stackoverflow.com/questions/13396261/custom-domains-on-azure-websites-$p$pview-not-working-even-after-upgrade-to-shar\">this但他们没有提供适合我的HTTP 404问题的答案。也有许多对这样的问题似乎是过时的不是蔚蓝的网站支持共享模式的域名(我相信)

I know there are other questions on SO, like this or this but none of them provide an answer that fits my http 404 issue. Also many of the questions on SO seem to be out of date not that azure websites support domain names in shared mode (I believe)

欢呼声罗布

推荐答案

上床,并具有在早上再看看久经考验的方法似乎为我工作;)(这意味着它原来是我自己愚蠢)

The tried and tested method of going to bed and having another look in the morning seemed to work for me;) (Which means it turns out to be my own stupidity)

我在蔚蓝的门户网站只加mydomain.com,并增加www.mydomain.com,以及必要的。

我可以发誓,我看到在门户网站说,域名应该是在格式的输入虽然有些帮助文本。哦没关系。我希望这可以帮助其他人具有相同的错误。

I could swear that I saw some help text in the portal saying that domains should be input in that format though. Oh well never mind. I hope this helps someone else with the same error.

这篇关于Azure的网站添加自定义域后,将返回404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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