在Azure网站自定义404

在Azure网站自定义404

本文介绍了在Azure网站自定义404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've hosted a Azure Website via GitHub and want to make a custom 404 page.
My VisualStudio2013 is connected to Azure. How can access to the web.config?
If i want to take the way via FTP - how can i access it with my VS2013?
Is it possible to set up the custom 404 via the Azure portal?

目前我得到的standardpage:

Currently i get the 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:


推荐答案

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

Just edit the web.config file in your Visual Studio solution, modify the customErrors section and then check the file into Github to trigger a new deployment. The Azure documentation site has a full example of this.

这篇关于在Azure网站自定义404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 00:40