设置IIS下载.iso文件
设置IIS
允许IIS特定后缀名文件下载
刚通过Wizard安装好IIS并启用web下载文件,但是发现不能下载.iso文件,页面提示需要设置MIME,在终端使用wget下载文件也遇到
HTTP request sent, awaiting response... 404 Not Found参考[Add a MIME Type (IIS 7)](https://technet.microsoft.com/en-us/library/cc725608(v=ws.10).aspx)
- 在网站的功能列表中选择 - MIME 类型

- 在 - MIME 类型设置中点击- 添加:文件扩展名- .iso并且设置MIME类型- application/octet-stream

- 或执行以下命令(暂时没有试出,似乎 - appcmd命令没有安装)
appcmd set config /section:staticContent /+"[fileExtension=' .xyz ',mimeType=' application/octet-stream ']"HTTP request sent, awaiting response... 401 Unauthorized
遇到无法下载文件,下载显示
HTTP request sent, awaiting response... 401 UnauthorizedLast updated
Was this helpful?