zoukankan      html  css  js  c++  java
  • 【Azure 应用服务】部署Azure Web App时,是否可以替换hostingstart.html文件呢?

    问题描述

    当成功创建一个Web App时,通过高级工具(Kudu)可以查看 Web App的根目录(wwwroot)中有一个默认的文件(hostingstart.html)。它就是应用服务的默认页面。如果没有指定default 或者 index等页面或者Web.config中没有配置rewrite规则,通过URL访问站点时,则会显示hostingstart.html的内容。

    那在部署App Service (也称 Web App)时,是否可以替换这个文件或者是用其他文件作为首页呢? 

    问题分析

    当然可以!

    在部署时,可以保留hostingstart.html文件,也可以删除它。然后在wwwroot目录中包含 Default.htm, index.html 等文件即可。也可以自定义首页文件,可在App Service门户的配置 -> 默认文档一栏中设置。

    注意:第一条记录为优先级最高页面。

    参考资料

    NA

    当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!

  • 相关阅读:
    ngInclude与script加载模板
    ng-model-options
    angular模板加载 ----ng-template
    ngBind ngBindTemplate ngBindHtml
    ng-switch
    ng-show与ng-if区别
    运维教给我什么
    路漫漫其修远兮,吾将上下而求索
    那些让我们继续坚持下去句子
    随手记
  • 原文地址:https://www.cnblogs.com/lulight/p/14751060.html
Copyright © 2011-2022 走看看