IIS mime Configuration

Source: Internet
Author: User
Tags bmp image pkcs12 pkcs7 rfc822 microsoft iis flv file gtar

This article from: http://secyaher.blog.163.com/blog/static/3895577201151631821178? Fromdm & fromsearch & isfromsearchengine = Yes

 

I remember that I once said that the FLV file on Windows Server 2003 Server cannot be played. In the log "Win 2003 IIS mime problem, resulting in FLV playback failure, some friends may not know much about mime. Here I will discuss in detail the MIME type of IIS and registration of common files.

Mime (Multipurpose Internet Mail Extensions, multi-purpose Internet Mail Extension) is used to create e-mail exchanges, network documents, and other applications on the enterprise network and Internet.Program.

In IIS, you can specify a method for processing extension files by the server. For example, you can specify that. MP3 files are processed using digital audio.

For example, we usually access Microsoft websites, and many web pages have extensions. mspx, but you may not have seen this extension of web files. Microsoft's website uses ASP. NET technology, the extension should be. aspx, but why ASP. net webpage extension is. mspx instead. aspx? How can this problem be achieved? In fact, this does not have any special significance for Microsoft to do so, but it seems more personalized. The implementation method is. the MIME type of mspx file registration is ASP. NET page, that is, when you access such files, Microsoft's server will follow ASP.. net.

Through the above introduction, you should know that the MIME type is to tell the server how to process a file with a certain extension.

Generally, if you do not register the MIME type of a file and directly access it through a URL, the file will be downloaded. Assume that you have deleted the MIME type of the htm/html file in IIS. When you access this file, you will not be able to see this webpage, but the webpage has been downloaded. In Windows Server 2003/2008, for the sake of security, Microsoft cannot download mime-type files that are not registered by default. When you access unregistered file types, the error page is returned.

First, I will explain how to add and modify MIME types in IIS through images (because I am using Microsoft Windows XP Professional, so I am using the IIS 5.1 simplified version that comes with XP PRO ).

 

Open the IIS console and open the Properties dialog box for the website to be operated.

 

Select the HTTP header tab to open the file type button in the mime ing.

 

Here, we can add the MIME type we need. For example, if we need IIS to support online playback of rmvb files, we need to add the associated file name. rmvb, content type (MIME) is application/vnd. rn-RealMedia.

If the interpreter we need is not in IIS, such as PHP, we need to add it as follows.

 

Select "configuration"

 

Here we can see a lot of registered file extensions and DLL files that explain these file applications.

 

Suppose we want to add a file. he and C are system partitions. To run IIS as an ASP program, we need to add the file type. the executable file is "C: \ windows \ system32 \ inetsrv \ ASP. DLL "(winnt and 2000 should be" C: \ winnt \ system32 \ inetsrv \ ASP. DLL ").

Therefore, in general, we need to know the location of the DLL file to be interpreted when adding the execution program of a certain file in IIS. For example, if you want to run the PHP program in IIS, you need to install the PHP script interpreter, and then specify. PHP file to the DLL file.

Assume that the virtual host service of a carrier is used to customize the MIME type? Many VM service providers support custom MIME types. For example, my Service Provider supports this function.

 

Operations here are not as complex as operations in IIS directly, but also have some limitations.

Because we can only specify the file types supported by the server, but many service providers usually support common file types.

Common MIME types:

Hypertext markup language text .html, .html text/html
Common text. TXT text/plain
RTF text. rtf application/RTF
GIF image. GIF image/GIF
JPEG image. jpg image/JPEG
AU audio file. Au audio/basic
MIDI music files mid,. MIDI audio/Midi, audio/X-Midi
RealAudio music file. Ra,. Ram audio/X-PN-RealAudio
MPEG file. mpg,. MPEG Video/MPEG
AVI file. AVI Video/X-msvideo
Gzip file. GZ application/X-Gzip
Tar file. Tar application/X-Tar

WAP website webpage:

. Wbmp image/vnd. WAP. wbmp
. WML text/vnd. WAP. WML
. Wmlc application/vnd. WAP. wmlc
. WMLS text/vnd. WAP. WMLScript
. Wmlsc application/vnd. WAP. wmlscriptc

Attached to Microsoft IIS default mime table:

Extension Type/subtype IIS 4.0 IIS 5.0
* Application/octet-stream is
323 text/h323 No Yes
Acx application/Internet-property-stream No Yes
AI Application/postscript is
AIF audio/X-AIFF is
Aifc audio/X-AIFF is
AIFF audio/X-AIFF is
ASF video/X-MS-ASF No Yes
ASR video/X-MS-ASF No Yes
ASX video/X-MS-ASF No Yes
AU audio/basic is
AVI Video/X-msvideo is
Axs application/olescript No Yes
Bas text/plain is yes
Bcpio application/X-bcpio is
Bin application/octet-stream is
BMP image/BMP is
C text/plain is yes
Cat application/vnd. MS-pkiseccat No Yes
CDF application/X-CDF No Yes
CER application/x-x509-ca-cert No Yes
Class Application/octet-stream is
CLP application/X-msclip is
Cmx image/X-cmx is
Cod image/cis-COD is
Cpio application/X-cpio is
CRD application/X-mscardfile is
CRL application/pkix-CRL No Yes
CRT application/x-x509-ca-cert No Yes
CSH application/X-CSH is
CSS text/CSS No Yes
DCR application/X-Director Yes
Der application/x-x509-ca-cert No Yes
Dir application/X-Director Yes
DLL application/X-msdownload No Yes
DMS application/octet-stream is
Doc application/MSWord is yes
Dot application/MSWord is yes
DVI application/X-DVI is
DxR application/X-director is
EPS application/postscript is
Etx text/X-setext is
Evy application/envoy is
EXE application/octet-stream is
Fif application/fractals No Yes
Flr x-World/X-Fig is
GIF image/GIF is
Gtar application/X-gtar is
GZ application/X-gzip No Yes
H text/plain is yes
HDF application/X-HDF is
HLP application/WinHlp is
Hqx application/mac-binhex40 is
HTA application/HTA No Yes
HTC text/X-component No Yes
Htm text/html is
HTML text/html is
Htt text/webviewhtml No Yes
ICO image/X-Icon No Yes
IEF image/IEF is
III Application/X-iPhone No Yes
INS application/X-Internet-signup No Yes
ISP application/X-Internet-signup No Yes
Jfif image/pipeg No Yes
Jpe image/JPEG is
JPEG image/JPEG is
Jpg image/JPEG is
JS application/X-JavaScript is
Latex application/X-latex is
Lha application/octet-stream is
LSF video/X-la-ASF No Yes
LSX video/X-la-ASF No Yes
Lzh application/octet-stream is
M13 application/X-msmediaview is
M14 application/X-msmediaview is
M3U audio/X-mpegurl No Yes
MAN application/X-troff-man is
MDB application/X-msaccess is
Me application/X-troff-me is
MHT message/rfc822 No Yes
MHTML message/rfc822 No Yes
Mid audio/Mid No Yes
Mny application/X-msmoney is
MoV video/QuickTime is yes
Movie video/X-SGI-movie is
MP2 video/MPEG is
MP3 audio/MPEG No Yes
MPA video/MPEG is
MPE video/MPEG is
MPEG Video/MPEG is
MPG video/MPEG is
MPP application/vnd. MS-project is
MPV2 video/MPEG is
MS application/X-troff-MS is
MVB application/X-msmediaview is
NWS message/rfc822 No Yes
ODA application/ODA is
P10 application/pkcs10 No Yes
P12 application/x-pkcs12 No Yes
P7b application/x-pkcs7-certificates No Yes
P7c application/x-pkcs7-mime No Yes
P7m application/x-pkcs7-mime No Yes
P7r application/x-pkcs7-certreqresp No Yes
P7s application/x-pkcs7-signature No Yes
PBM image/X-portable-bitmap is
PDF application/PDF is
Pfx application/x-pkcs12 No Yes
PGM image/X-portable-graymap is
PKO application/ynd. MS-pkipko No Yes
PMA application/X-perfmon is
PMC application/X-perfmon is
PML application/X-perfmon is
PMR application/X-perfmon is
PMW application/X-perfmon is
PNM image/X-portable-anymap is
Pot, application/vnd. MS-PowerPoint is
PPM image/X-portable-pixmap is
PPS Application/vnd. MS-PowerPoint is
PPT application/vnd. MS-PowerPoint is
PRF application/pics-Rules No Yes
PS application/postscript is
Pub application/X-mspublisher is
Qt video/QuickTime is yes
RA audio/X-PN-RealAudio is
Ram audio/X-PN-RealAudio is
Ras image/X-CMU-raster is
RGB image/X-RGB is
RMI audio/Mid No Yes
Roff application/X-troff is
The RTF application/RTF is
RTX text/richtext is
SCD application/X-msschedule is
SCT text/scriptlet No Yes
Setpay application/set-payment-initiation No Yes
Setreg application/set-registration-initiation No Yes
Sh application/X-SH is
Shar application/X-Shar is
Sit application/X-stuffit No Yes
SND audio/basic is
SPC application/x-pkcs7-certificates No Yes
SPL application/futuresplash No Yes
SRC application/X-WAIS-source is
SST application/vnd. MS-pkicertstore No Yes
STL application/vnd. MS-pkistl No Yes
STM text/html is
Sv4cpio application/x-sv4cpio is
Sv4crc application/x-sv4crc is
T application/X-troff is
Tar application/X-tar is
TCL application/X-Tcl is
Tex application/X-Tex is
Texi application/X-texinfo is
Texinfo application/X-texinfo is
Tgz application/X-Compressed No Yes
TIF image/tiff is
TIFF image/tiff is
Tr application/X-troff is
TRM application/X-msterminal is
TSV text/TAB-separated-values is
TXT text/plain is yes
ULS text/iuls No Yes
USTAR application/X-USTAR is
VCF text/X-vCard No Yes
The following figure shows how to create a table in the format
WAV audio/X-WAV is
Wcm application/vnd. MS-works is
Wdb application/vnd. MS-works is
Wks application/vnd. MS-works is
WMF application/X-msmetafile is
WPS application/vnd. MS-works is
WRI application/X-mswrite is
Wrl x-World/X-Fig is
Wrz X-World/X-Fig is
Xaf X-World/X-Fig is
Xbm image/X-xbitmap is
Xla application/vnd. MS-Excel is
Xlc application/vnd. MS-Excel is
XLM application/vnd. MS-Excel is
XLS application/vnd. MS-Excel is
Xlt application/vnd. MS-Excel is
Xlw application/vnd. MS-Excel is
Xof x-World/X-Fig is
XPM image/X-xpixmap is
Xwd image/X-xwindowdump is
Z application/X-compress No Yes
Zip application/zip is

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.