iis7 default mime type behavior

后端 未结 3 1139
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 07:50

So in IIS 7 if there is no specific MIME definition for a certain extension, it will refuse to serve it (404) even if you can see it in a directory listing. I\'m sure this

3条回答
  •  鱼传尺愫
    2021-01-19 08:10

    Add a new MIME type for files of extension * with a type of application/octet-stream. This will provide a default MIME type for all files that don't have one and bypass the blocking.

    The risk, however, is you end up sharing your confidential database, configuration files and whatnot, so make sure you know what you are doing before you open your server to all downloads.

提交回复
热议问题