【问题标题】:Custom 404 on Azure WebsitesAzure 网站上的自定义 404
【发布时间】:2015-03-13 08:55:49
【问题描述】:

我通过 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:

【问题讨论】:

    标签: iis azure visual-studio-2013 ftp azure-web-app-service


    【解决方案1】:

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

    【讨论】:

    • 它不是 Visual Studio 解决方案。所以我的VS中没有任何web.config文件。
    • 然后找到您的 web.config 文件 :)。在最坏的情况下,您可以直接从 Azure 上站点的 D:\home\site\wwwroot 文件夹编辑它
    猜你喜欢
    • 1970-01-01
    • 2015-04-17
    • 2023-04-11
    • 1970-01-01
    • 2022-07-22
    • 2017-03-05
    • 2015-04-06
    • 2013-07-25
    • 1970-01-01
    相关资源
    最近更新 更多