【问题标题】:Addig new Default Document to IIS 7向 IIS 7 添加新的默认文档
【发布时间】:2014-07-29 13:34:45
【问题描述】:

我正在尝试将Default Document 添加到我的IIS 7 网站,当我将其添加到条目类型列时,它显示的是本地而不是继承?我如何使它继承?当我关闭它并返回它时,我刚刚添加的文件消失了。以下是我要做的步骤。

1. Left click on site name in the pane
2. Double click on the Default Document icon
3. Click the Add button in the upper right
4. Type in the name of the file 
5. Hit Ok

然后它显示如下:

【问题讨论】:

    标签: iis-7 default-document


    【解决方案1】:

    在 IIS 管理器中,通过在左侧选择您的计算机名称更改为 Web 服务器级别的配置。然后,您将向每个站点继承的 applicationhost.config 添加默认文档。

    交替使用 appcmd,例如:appcmd.exe set config "MySite" -section:system.webServer/defaultDocument /+"files.[value='FileName.ext']" /commit:apphost

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-15
      • 2021-04-12
      • 1970-01-01
      • 2011-06-02
      • 2015-05-02
      • 1970-01-01
      • 1970-01-01
      • 2012-10-28
      相关资源
      最近更新 更多