iis6, iis7, apache set mime type (applicable to vps, cloud hosts, dedicated servers)

Published: 2016-11-11

```html

1. IIS6 adding method.

Open iis, expand the website, right-click the site to be configured -- Properties. Find the “HTTP Headers” tab -- MIME type to set and add.

blob.png

The screenshot uses the .ipa MIME type as an example.


2. IIS7 (iis7.5, iis8) setup method.

Open iis7, click the site to be configured, then click MIME type on the right.

blob.png

blob.png

Note that file extensions all start with a dot.


3. apache setup method.

For linux (apache), please refer to: http://www.west.cn/faq/list.asp?unid=1213 

Appendix: Common MIME Types:

File extensionMIME typeDescription
.jsonapplication/jsonLightweight data interchange dynamic script; programs using json technology must add it
.ipaapplication/iphoneApple app
.apkapplication/vnd.android.package-archiveAndroid app
.flvflv/flv-flashOnline playback
.mp4video/mp4Online playback
 .ttfapplication/octet-streamttf font
 .woffapplication/x-font-woffwoff font
 .woff2application/x-font-woffwoff2 font
 .svgimage/svg+xmlsvg graphic file
.html or .htmtext/htmlHypertext Markup Language text
.rtfapplication/rtfRTF text
.gifimage/gifGIF graphic
.jpeg or .jpgimage/jpegJPEG graphic
.auaudio/basicau sound file
.mid or .midiaudio/midi or audio/x-midiMIDI music file
.ra or .ram or .rmaudio/x-pn-realaudioRealAudio music file
.mpg or .mpeg or .mp3video/mpegMPEG file
.avivideo/x-msvideoAVI file
.gzapplication/x-gzipGZIP file
.tarapplication/x-tarTAR file
.exeapplication/octet-streamDownload file type
.rmvbvideo/vnd.rn-realvideoOnline playback


```