From: http://blog.csdn.net/hiyavip/article/details/4526862
Let IIS6 support the download of CAJ files in the following format:
To define the MIME type for a specific extension, follow these steps:
1. Open the IIS Microsoft Console (MMC), right-click "Information Service (IIS) manager", and click "properties ".
2. Click "MIME type ".
3. Click "new ".
4. In the "extension" box, type the desired file extension (for example, CAJ, e-book file ).
5. In the "MIME type" box, type application/octet-stream.
6. Apply new settings. Please note that you must restart the "World Wide Web Publishing Service" or (restart IIS) to wait for the workflow to take effect. In this example, IIS can now process files with the. CAJ extension. Your IIS can download e-book files.
Attach the MIME type list. You can select the corresponding type for processing different files:
Reference content
Mime-types (MIME type) dateiendung (Extension) Bedeutung
Application/MSExcel *. xls *. xla Microsoft Excel dateien
Application/mshelp *. HLP *. chm Microsoft Windows Hilfe dateien
Application/mspowerpoint *. ppt *. PPZ *. PPS *. Pot Microsoft PowerPoint dateien
Application/MSWord *. Doc *. Dot Microsoft Word dateien
Application/octet-stream *. EXE exe
Application/pdf *. pdf Adobe PDF-dateien
Application/postscript *. ai *. EPS *. PS Adobe postscript-dateien
Application/RTF *. rtf Microsoft RTF-dateien
Application/X-httpd-PHP *. php *. phtml PHP-dateien
Application/X-JavaScript *. js serverseitige JavaScript-dateien
Application/X-Shockwave-flash *. SWF *. Cab flash Shockwave-dateien
Application/zip *. zip-archivdateien
Audio/basic *. Au *. snd sound-dateien
Audio/MPEG *. MP3 MPEG-dateien
Audio/X-Midi *. Mid *. MIDI midi-dateien
Audio/X-mPEG *. MP2 MPEG-dateien
Audio/X-WAV *. wav-dateien
Image/GIF *. gif GIF-dateien
Image/JPEG *. JPEG *. jpg *. jpe JPEG-dateien
Image/X-windowdump *. xwd X-Windows dump
Text/CSS *. CSS stylesheet-dateien
Text/html *. htm *. html *. shtml-dateien
Text/JavaScript *. js JavaScript-dateien
Text/plain *. txt Reine textdateien
Video/MPEG *. MpEG *. mpg *. mpe mpeg-dateien
Video/vnd. Rn-realvideo *. rmvb realplay-dateien
Video/QuickTime *. QT *. mov QuickTime-dateien
Video/vnd. Vivo * Viv *. Vivo-dateien
Which of the following is found during online search?
Reference content
Allows IIS to support download of unknown file extensions
Added the downloadable file type in IIS6.
IIS 6.0 cannot process unknown MIME types
IIS6 only serves requests for files with known file extensions. If the file extension of the request content is not mapped to a known extension, the server rejects the request. That is, IIS does not support extended download of unknown files!
Symptom
When you request a file from the IIS 6.0 Web server, and the file extension is not the MIME type defined on the Web server, you will see the following error message:
HTTP Error 404-the file or directory cannot be found.
Cause
Earlier versions of IIS contain wildcard mime ing, allowing IIS to process any file without considering the extension. IIS 6.0 does not contain this wildcard mime ing and cannot process any type of extension defined beyond the mimemap node in the IIS metadatabase.
Solution
Use MIME type
The Multipurpose Internet mail exchange (MIME) type describes how Web browsers or mail applications process files received from servers. For example, when a web browser requests a project on the server, it also requests the MIME type of the object. Some MIME types (examples) can be displayed in the browser. Other MIME types (such as text processing documents) need to be displayed by external help applications.
When IIS sends an email message to the mail application or the webpage to the client web browser, IIS also sends the MIME type of the transmitted data. If an additional or embedded file is transmitted in a specific format, IIS notifies the client application of the MIME type of the embedded or attached file. Then the client application knows how to process or display the data that is being received from IIS.
IIS only provides services for files with extensions registered in the MIME type list, and allows you to configure other MIME types and change or delete MIME types.
IIS pre-configuration is the default setting for Recognizing global MIME types. All websites you create in IIS can recognize these MIME types. MIME types can also be defined on websites and directories independently of other or globally defined types. When viewing MIME types at the website or directory level, only the types corresponding to this level are displayed, not all types inherited from the previous level. If the same MIME type is applied at the global level after the MIME type is modified at a lower level, the Global MIME type will overwrite the modified MIME type at a lower level.
If the client request references a file extension whose extension is not defined in the MIME type, IIS returns a 404.3 error. By adding the wildcard (*) MIME type, you can also configure IIS to provide services to all files, regardless of the file extension.
Important you must be a member of the Administrators group on the local computer or be granted permissions to perform the following steps. As the best security operation, log on to your computer using an account that is not in the Administrators group, and run the command as an administrator to run IIS manager. At the command prompt, type RunAs/User: administrative_accountname "MMC % SystemRoot %/system32/inetsrv/IIS. msc ".
Let IIS6 support downloading DVF files in the following format:
The DVF file is Sony compressed voice file or DV studio camcorder graphics file, which is generally used in recording pen files.
Extension: dvf ascii: ms_voice
You can use the Sony Player Plug-in version 1.2 for the Microsoft Windows Media Player application to play. [bitscn_com]
To define the MIME type for a specific extension, follow these steps:
1. Open the IIS Microsoft Console (MMC), right-click the name of the local computer, and click "properties ".
2. Click "MIME type ".
3. Click "new ".
4. In the "extension" box, type the desired file extension (for example,. DVF recording pen file ).
5. In the "MIME type" box, type application/octet-stream.
6. Apply new settings. Note that you must restart the Web Publishing Service or wait for the workflow to take effect. In this example, IIS can now process files with the. DVF extension. Your IIS can download the recording pen file.
If you want to process all files without considering the file extension (for example, if you cannot predict all files to be processed), follow these steps to add wildcard ing: China _ Network Management Alliance bitscn.com
Note: You can only add wildcard ing to IIS mime ing during troubleshooting as a temporary solution. After you confirm that the MIME type is missing, delete the wildcard ing and add a specific mime ing of the MIME type to be processed.
1. Open the IIS Microsoft Console (MMC), right-click the name of the local computer, and click "properties ".
2. Click "MIME type ".
3. Click "new ".
4. In the "extension" box, type an asterisk (*).
5. In the "MIME type" box, type application/octet-stream.
6. Apply new settings. Note that you must restart the Web Publishing Service or wait for the workflow to take effect.
Note: In addition to making the above changes on the global layer of IIS, you can also add the required MIME types to the lower layers of the metabase. In this case, you can specify a site or directory with a specific file extension, rather than allowing all sites to process the extension globally.