【问题标题】:Azure not taking index.html as executable entry pointAzure 不将 index.html 作为可执行入口点
【发布时间】:2018-06-17 17:53:53
【问题描述】:

在 azure 中开发并托管了一个 node.js 应用程序,但它仅在我们在域结束后编写 index.html 时才加载我的应用程序,例如https://mydomain.azure.net/index.html,我们如何在不提供该 index.html 文件的情况下使其工作

希望有答案

【问题讨论】:

标签: node.js azure azure-web-app-service


【解决方案1】:

为确保您的网站在访问者转到https://mydomain.azure.net 时没有指定页面名称时正常工作,您应该确保您网站的顶层包含一个名为“index.html”的文件。该文件必须位于顶层;如果文件位于您发布的文件夹或目录中,Web 服务器将无法找到该文件。

【讨论】:

    猜你喜欢
    • 2023-03-04
    • 2014-06-24
    • 2017-11-18
    • 1970-01-01
    • 2015-04-21
    • 1970-01-01
    • 1970-01-01
    • 2019-01-31
    • 2018-11-23
    相关资源
    最近更新 更多