在Azure网站自定义404(Custom 404 on Azure Websites)

2019-09-26 19:36发布

我主持通过GitHub上一个Azure的网站,并希望使自定义的404页。
我VisualStudio2013连接到Azure上。 如何访问到web.config?
如果我想通过FTP采取的方式 - 我如何能与我的VS2013访问它?
是否有可能通过在Azure门户设置自定义404?

目前我得到的standardpage:

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:

Answer 1:

只需编辑在Visual Studio解决方案的web.config文件,修改的customErrors部分,然后检查文件到Github上引发了新的部署。 Azure的文档的网站上有这样完整的例子 。



文章来源: Custom 404 on Azure Websites