Virtual host settings MIME type (json cannot be used, needs to be set)
Published: 2016-11-11
```html
```
Windows system virtual hosting is added directly in the hosting control panel.


Linux (Apache) setup method:
Create a new text file locally, and add the MIME type corresponding to the extension in it (using .ipa and .apk as examples)
AddHandler application/iphone .ipa
AddHandler application/vnd.android.package-archive .apk
After saving, upload it to the website root directory, and rename it to .htaccess (note the dot). If there is a .htaccess file in the website directory, add it directly in .htaccess.
Programs using JSON technology need to add the JSON MIME type
Common MIME types:
| File extension | MIME type | Description |
| .json | application/json | Lightweight dynamic script for data exchange; must be added for programs using JSON technology |
| .ipa | application/iphone | Apple app |
| .apk | application/vnd.android.package-archive | Android app |
| .mp4 | video/mp4 | MP4 video |
| .ttf | application/octet-stream | ttf font |
| .woff | application/x-font-woff | woff font |
| .woff2 | application/x-font-woff | woff2 font |
| .svg | image/svg+xml | SVG graphic file |
| .flv | flv/flv-flash | Online playback |
| .html or .htm | text/html | Hypertext Markup Language text |
| .rtf | application/rtf | RTF text |
| .gif | image/gif | GIF graphic |
| .jpeg or .jpg | image/jpeg | JPEG graphic |
| .au | audio/basic | au sound file |
| .mid or .midi | audio/midi or audio/x-midi | MIDI music file |
| .ra or .ram or .rm | audio/x-pn-realaudio | RealAudio music file |
| .mpg or .mpeg or .mp3 | video/mpeg | MPEG file |
| .avi | video/x-msvideo | AVI file |
| .gz | application/x-gzip | GZIP file |
| .tar | application/x-tar | TAR file |
| .exe | application/octet-stream | Download file type |
| .rmvb | video/vnd.rn-realvideo | Online playback |
