2015-01-13 67 views
1

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

我无法下载.map,.browser,.config类型的文件。其实这些都是与游戏有关的文件。没有这些文件,更新没有完成。

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

回答

0

您需要为这些扩展添加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> 

一面注意使这些文件可用于客户端可能会导致严重的安全威胁。

相关问题