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

Published: 2016-11-11

```html

1. How to add in IIS6.

Open IIS, expand the website, right-click the site to be configured -- Properties. Find the "HTTP Headers" tab -- MIME Types to configure and add.

blob.png

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


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

Open IIS7, click the site to be configured, and click MIME Types on the right.

blob.png

blob.png

Note that file extensions all start with a dot.


3. apache configuration method.

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

Common MIME types attached:

File extensionMIME typeDescription
.jsonapplication/jsonLightweight dynamic data exchange 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


```