【问题标题】:How to allow .config, .map, .browser files to be downloaded IIS如何允许 .config、.map、.browser 文件下载 IIS
【发布时间】:2015-01-13 10:16:32
【问题描述】:

为了下载游戏更新,我已将 IIS 7.5 配置为下载任何类型的文件,例如 .html、.xml、.aspx 等。但是有一个问题。

我无法下载 .map、.browser、.config 类型的文件。实际上这些是与游戏相关的文件。没有这些文件,更新不会完成。

你能帮我解决这些问题吗?

【问题讨论】:

    标签: asp.net iis iis-7 iis-7.5


    【解决方案1】:

    您需要为这些扩展添加 MIME 类型。

    <configuration>
       <system.webServer>
          <staticContent>
            <mimeMap fileExtension=".config" mimeType="text/xml" />
            <mimeMap fileExtension=".map" mimeType="text/plain" />
            <mimeMap fileExtension=".browser" mimeType="text/plain" />
          </staticContent>
       </system.webServer>
     </configuration>
    

    附带说明,将这些文件提供给客户端可能会导致严重的安全威胁。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-03
      • 2011-12-30
      • 2011-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多