【发布时间】:2015-03-10 15:03:08
【问题描述】:
我尝试使用来自IIS: How to serve a file without extension?的答案
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".*" mimeType="text/plain" />
</staticContent>
</system.webServer>
</configuration>
这让我可以定位文件,但不能访问它
HTTP 错误 404.3 - 未找到
由于扩展程序,无法提供您请求的页面 配置。如果页面是脚本,则添加处理程序。如果文件 应该下载,添加 MIME 映射。
【问题讨论】:
-
这能回答你的问题吗? IIS: How to serve a file without extension?
标签: iis web-config mime-types