Custom 404 on Azure Websites

拟墨画扇 提交于 2019-12-24 10:39:41

问题


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?

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:

回答1:


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.



来源:https://stackoverflow.com/questions/29028211/custom-404-on-azure-websites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!