Aug 22, 2011
tom

How to serve unknown file types from IIS 7

Question

Is there a way to serve unknown file types in IIS 7?

I only want to do this for a single directory where execution is turned off and everything will be served as a static file.

As it is now, I have to add each file extension that I want to serve as a MIME type. I want to serve everything. How can this be done?

Answer

You can add an universal MIME type by using the extension “*” and the type “application/octet-stream”: http://support.microsoft.com/kb/326965

Related posts:

  1. Configure IIS 6.0 to serve all file extensions, even unknown ones
  2. difference between mime types and extension filtering on IIS?
  3. Why are MIME types needed if we can identify file types by their extensions?
  4. Serve pdf fies in IIS
  5. How can I make all unrecognized file types as binary in Apache2?

Leave a comment