If you own a dedicated server or VPS (Virtual Private Server), it means you can run the IIS (Internet Information Services) Manager as an administrator; adding mime types such as .flv or .mp4 is very simple.
This tutorial will show you how to add MIME Type to a Web site/ Web site directory or to a Global MIME Type.
Note: you are required to be a member of the Administrators group on the local computer to perform the steps.
1. Adding MIME Type to a Web site or Web site directory
- 1. In IIS Manager, right-click the Web site or Web site directory for which you want to add a MIME type, and click Properties.
- 2. Click HTTP Headers tab
- 3. Click MIME Types… button
- 4. Click New button
- 5. In MIME Type box, type the file name extension (ex: .flv) and a valid MIME Type (ex: video/x-flv).
- 6. Click OK button.
2. Adding a Global MIME Type
This way will apply the MIME Type to all web sites as well as web site directories.
- 1. In IIS Manager, right-click the local computer, and click Properties.
- 2. Click on MIME Types … button
- 3. Click New button
- 3. In MIME Type box, type the file name extension (ex: .flv) and a valid MIME Type (ex: video/x-flv).
- 5. Click OK button.
- 1. To create a MIME type for an undefined MIME type, type an asterisk (*) in the Extension box, and type application/octet-stream in the MIME type box.
- 2. To create a MIME type for a file without an extension, type a period (.) in the Extension box, and type your MIME type in the MIME type box.
Bonus: if you’re on a shared hosting, make sure that you can not touch the server configurations; therefore you may need to know How to add MIME Types in Web.config.