Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

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

share|improve this answer

Instead of going through the MMC like the kb article suggests, you can also just create a Web.config file in the directory, with the following content:

<?xml version="1.0" encoding="UTF-8"?>
            <mimeMap fileExtension=".*" mimeType="application/octet-stream" />
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.