Have IIS6 support the FLV and RMVB format methods

  • 2020-05-09 19:38:38
  • OfStack

For FLV types:
Method 1: open Internet Information Services Manager (iis) and select "local computer" -- > User site -- > Open "properties" -- > - "HTTP head" > "MIME type" -- > "New". Extension = ".flv "MIME type =" flv-application/octet-stream ", save and exit.
Method 2: select "local computer" -- > User site -- > Open "properties" -- > - "HTTP head" > "MIME type" -- > "New", MIME type: video/ x-flv extension:.flv, ready to play

[reason: WIN2003 enhances IIS6's MIME validation, and all unregistered extension file formats show 404 errors.]

For RMVB type:
Open Internet Information Services Manager (Microsoft WEB server platform) and select "local computer" -- > User site -- > Open "properties" -- > - "HTTP head" > "MIME type" -- > "New". Extension = ".rmvb "MIME type =" application ", save and exit.
For iso type:
Open Internet Information Services Manager (iis (Microsoft WEB server platform)) and select "local computer" -- > User site -- > Open "properties" -- > - "HTTP head" > "MIME type" -- > "New". Extension = ".iso "MIME type =" application ", save and exit.

Use the MIME type

The Multipurpose Internet Mail Exchange (MIME) type describes how the Web browser or mail application handles files received from the server. For example, when the Web browser requests a 1 project on the server, it also requests the MIME type of this object. Some MIME types, such as graphics, can be displayed inside the browser. Other MIME types, such as word processing documents, need to be displayed using an external help application.

When IIS sends a mail message to a mail application or a web page to the client Web browser, IIS also sends the MIME type of data being passed. If an attached or embedded file is passed in a particular format, IIS notifies the client application of the MIME type of the embedded or attached file. The client application then knows how to process or display the data it is receiving from IIS.

IIS serves only files that have extensions registered in the MIME type list, and also allows you to configure other MIME types and change or delete MIME types.

IIS is preconfigured to recognize the default Settings of the global MIME type. These MIME types are recognized by all web sites you create in IIS. The MIME type can also be defined at the site and directory levels independently of other or globally defined types. When viewing the MIME type at the site or directory level, only the type 1 corresponding to that level is displayed, not all types inherited from the previous level. If the same MIME type is applied at the global level after modification of the MIME type at the lower level, then the MIME type at the global level overrides the modified MIME type at the lower level.

If the client requests a reference to a file extension whose extension is not defined in the MIME type, IIS returns a 404.3 error. You can also configure IIS to serve all files, ignoring file extensions, by adding the wildcard (*) MIME type.

To do this, you must be a member of the Administrators group on your local computer or you must be assigned the appropriate permissions. As a security best practice, log on to your computer with an account that is not part of the Administrators group, and then use the run mode command to run the IIS manager as an administrator. At the command prompt, type runas /user:administrative_accountname "mmc %systemroot%\system32\inetsrv\ iis.msc ".

Add the global MIME type

In the IIS manager, expand the local computer, right-click the computer to which you want to add the MIME type, and click properties.

Click the MIME type TAB.

Click new.

In the extensions box, type the file extension.

In the MIME type box, type a description that exactly matches the file type defined on the client computer.

Note that you can also create an MIME type for files with no extension or without a defined MIME type. To do this, type the asterisk (*) in the extension box, and application/ octet-stream in the MIME type box.

Click ok.

Adds the MIME type to a website or directory

In IIS manager, right-click the web site or web directory for which you want to add MIME type, and click properties.

Click the HTTP header TAB.

Click type MIME.

Click new.

In the extensions box, type the file extension.

In the MIME type box, type a description that exactly matches the file type defined on the client computer. If you define an MIME type that has been defined at a higher level, you will be prompted to select the level at which this MIME type should reside.

Click ok.

The following figure shows the relationship between the MIME type defined in IIS and the file type defined on the client computer.

Remove the MIME type from the site or directory

In the IIS manager, right-click to remove a site or site directory of type MIME from it, and click properties.

Click the HTTP header TAB.

Click type MIME.

From the list of registered MIME types, click the MIME type you want to delete, and then click delete.

Click ok.

Such as:

To add *.ISO file as downloadable, there are two steps as follows:

1. Add download types for all sites in IIS:

Execution: start - program - administrative tools - local computer - properties -MIME type - new.

And I'm gonna go ok, apply, ok, and that's it. Other types can follow the same setting.

2. In IIS manager, right-click the web site or web directory for which you want to add MIME type, and click properties.

Click the HTTP header TAB.

Click MIME type.

Click new.

In the extension box, type the file extension:.iso.

In the MIME type box, type ISO File

Click ok.

IIS6 breaks the restriction of ASP uploading to 200KB

1. Modify the IIS Settings to allow direct editing of the configuration database

2. Turn off iis admin service service in the service first

Find windows\system32\inesrv\ metabase.xml,

Open it, go to ASPMaxRequestEntityAllowed and change it to the desired value, the default is 204800, that's 200K and change it to the size you want. For example: 51200,000 (50M)

Then restart the iis admin service service.


Related articles: