Increased downloadable file types in IIS6 and IIS6 to break the ASP upload 200kb limit

zhaozj2021-02-16  40

Added file type in IIS6

Use MIME type

MULTIPURPOSE Internet Mail Exchange (MIME) Type Description Web browser or mail application how to handle files received from the server. For example, when a web browser requests an item on a server, the MIME type of this object will also request. Some MIME types (such as graphics) can be displayed inside the browser. Other MIME types (such as text processing documents) require an external help application to display.

When IIS transmits message messages to the mail application or delivery web page to the client web browser, IIS also sends the MIME type of the transferred data. If there is an additional or embedding file passed in a specific format, IIS will notify the client application to embed or attached the MIME type of the file. The client application then knows how to handle or display data received from IIS.

IIS only provides services for files with extensions that have been registered in the MIME Type list, and also allows other MIME types and changes or delete MIME types.

IIS pre-configured to identify default settings for the global MIME type. All sites you created in IIS can identify these MIME types. The MIME type can also be defined at the site and directory level independently of the type of other or global definitions. When viewing the MIME type at the site or directory level, only the only type of the unique corresponding to this level is displayed, which is not all types from the previous level. If the MIME type is applied at a lower level, the same MIME type is applied at the global level, then the global level MIME type will override the MIME type modified at a lower level.

If the client request references its extension not defined in the MIME type, IIS will return a 404.3 error. By adding a wildcard (*) MIME type, you can also configure the IIS to provide services to all files, and ignore the file extension.

It is important to be a member of the Administrators group on the local computer or must be delegated to perform the following steps. As the best operation of security, use an account that is not a Administrators group to log in to the computer, and then run the IIS Manager as an administrator using the running mode. At the command prompt, type RunaS / User: administrative_accountname "mmc% systemroot% / system32 / inetsrv / Iis.msc".

Add global MIME type

In IIS Manager, expand your local computer, right-click on the computer you want to add a MIME type, click Properties. Click the MIME Type tab. Click New. In the Extended Name box, type the file extension. In the MIME Type box, type a description that fully matches the file type defined on the client computer. Note You can also create a MIME type for fileless or unfained MIME types. To complete this, type an asterisk (*) in the Extended Name box, and type Application / OcTet-Stream in the "MIME Type" box. Click OK.

Add a MIME type to a website or directory

In the IIS Manager, right-click the website or a website directory you want to add a MIME type, click Properties. Click the HTTP Screen tab. Click MIME Type. Click New. In the Extended Name box, type the file extension. In the MIME Type box, type a description that fully matches the file type defined on the client computer. If you define a MIME type that is already a higher level, the system will prompt you to select the level of this MIME type should reside. Click OK.

The following figure shows the relationship between the MIME type defined in IIS and the relationship between the file type defined on the client computer. Remove the MIME type from the website or directory

In IIS Manager, right-click the website or website directory you want to remove from you, click Properties. Click the HTTP Screen tab. Click MIME Type. From the "Register MIME Type" list, click the MIME type you want to delete, and then click Delete. Click OK.

Such as:

To increase the * .iso file as a downloadable, the operation procedure is as follows,

In the IIS Manager, right-click the website or a website directory you want to add a MIME type, click Properties. Click the HTTP Screen tab. Click MIME Type. Click New. In the Extended Name box, type file extensions: .iso. In the MIME Type box, type ISO file Click OK.

IIS6 to break the ASP upload 200kb limit

First, modify the IIS settings, allow direct editing of the configuration database, as shown below:

Second, first closing the IIS Admin Service service in the service to find the metabase.xml under Windows / System32 / Inesrv /, open, find AspMaxRequestentityAllowed to modify him to the required value, default is 204800, that is, 200K to modify it to you. The size can be. Such as: 51200000 (50M) then restart IIS Admin Service service

转载请注明原文地址:https://www.9cbs.com/read-27524.html

New Post(0)