IIS 7.5: How to let him serve by default all file extensions (without manually adding them)?

AMeyer picture AMeyer · Jul 18, 2011 · Viewed 11.5k times · Source

It is a little annoying that every time when you put a "new" file-extension on your IIS 7.5 backed server for simple http-download you have to think about adding the extension to the IIS configuration!

(e.g. provide a file zipped in the format .7z)

Is there a way to tell IIS "serve anything" (like it is the default setting in Apache-Webserver) ?

Thanks

Answer

inf3rno picture inf3rno · Jun 9, 2014

You should add the following to the MIME types:

extension:  .*
MIME type:  application/octet-stream

After that (depending on the browser) every unknown file will be forced to download.