Azure网站上的自定义404

时间:2015-03-13 08:55:49

标签: iis azure visual-studio-2013 ftp azure-web-sites

我通过GitHub托管了一个Azure网站,并希望制作一个自定义的404页面 我的VisualStudio2013已连接到Azure。如何访问web.config?
如果我想通过FTP取道 - 我如何使用我的VS2013访问它?
是否可以通过Azure门户设置自定义404?

目前我获得标准页面:

Error 404 - Web Site not found!

The website you have attempted to reach is
not available in this Microsoft Azure Web Sites
region. This could be due to one of several
reasons:

1 个答案:

答案 0 :(得分:1)

只需编辑Visual Studio解决方案中的web.config文件,修改customErrors部分,然后将文件检入Github以触发新部署。 Azure文档站点有full example of this