IIS supports any extension download method (group image)

  

Sometimes the download space is provided for download, so you can directly set up any file download.

If there is asp in the download space, the php file is not recommended to set this up. If you set this up, you don't want to use asp, php files can be used by others.

1, the site canceled execute permissions

2, in order to prevent asp, php file is downloaded, no you do not need to set

Let IIS to support any Download of extensions and unknown extensions

1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and click “Properties”. 2. Click “MIME Type”. 3. Click “New”. 4. In the "extensions" box, type an asterisk (*). 5. In the "MIME Type" box, type application/octet-stream.

in IIS6 the new downloadable file types

IIS 6.0 does not serve unknown MIME type IIS6 only serve requests for files with known file name extension. If the file extension of the requested content is not mapped to a known extension, the server rejects the request. That is, IIS does not support unknown file extension downloads!

SYMPTOMS When you request a file from an IIS 6.0 Web server and the file's extension is not a defined MIME type on the Web server, you will see the following error message: HTTP Error 404 - Not Found File or directory.

Cause Earlier versions of IIS included a wildcard MIME mapping that allowed IIS to process any file without regard to the extension. IIS 6.0 does not include this wildcard MIME mapping and cannot handle any type of extension defined outside of the MimeMap node in the IIS metabase.

Solution

Using MIME Types The Multipurpose Internet Mail Exchange (MIME) type describes how a web browser or mail application handles files received from the server. For example, when a web browser requests an item 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 delivers a mail message to a mail application or delivers a web page to a client web browser, IIS also sends the MIME type of the data being passed. If there are additional or embedded files that are passed in a specific format, IIS notifies the client application to embed or attach the MIME type of the file. The client application then knows how to process or display the data being received from IIS. IIS only serves files that have an extension that is already 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 for global MIME types. All MIME types that you create in IIS recognize these MIME types. MIME types can also be defined at the site and directory level, independent of other or globally defined types. When viewing a MIME type at the site or directory level, only the types that correspond to this level are displayed, not all types that are inherited from the previous level. If the MIME type is modified at a lower level and the same MIME type is applied at the global level, the MIME type at the global level overrides the MIME type modified at the lower level. If the client request references a file extension whose extension is not defined in the MIME type, IIS will return a 404.3 error. By adding a wildcard (*) MIME type, you can also configure IIS to serve all files, ignoring file extensions. Important You must be a member of the Administrators group on the local computer or must be delegated the appropriate authority to perform the following steps. As a security best practice, log on to the computer with an account that is not part of the Administrators group, and then use the Run As command to run IIS Manager as an administrator. At the command prompt, type runas /user:administrative_accountname "mmc %systemroot%/system32/inetsrv/iis.msc".

Let IIS6 support DVf file format download:

The DVF file is Sony Compressed Voice File or DV Studio Camcorder Graphics File, which is generally used in the recorder file. 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.

To define a MIME type for a specific extension, follow these steps: 1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click “Properties”. 2. Click “MIME Type”. 3. Click “New”. 4. In the "extensions" box, type the desired file extension (for example, a .dvf recorder file). 5. In the "MIME Type" box, type application/octet-stream. 6. Apply the new settings. Please note that you must restart the "World Wide Web Publishing Service" or wait for a worker process loop for the changes to take effect. In this example, IIS can now handle files with a .dvf extension, and your IIS can provide a download of the recorder file.

If you want to process all files regardless of the file extension (for example, if you can't predict all the files that will be processed), follow these steps to add a wildcard mapping:

Note: You can only Add a wildcard mapping to the IIS MIME map during troubleshooting as a temporary solution. After determining that the missing MIME type is the cause of the problem, remove the wildcard mapping and add a specific mapping of the MIME type that needs to be processed. 1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click “Properties”. 2. Click “MIME Type”. 3. Click “New”. 4. In the "extensions" box, type an asterisk (*). 5. In the "MIME Type" box, type application/octet-stream. 6. Apply the new settings. Please note that you must restart the "World Wide Web Publishing Service" or wait for a worker process loop for the changes to take effect. Note: In addition to making the above changes in the IIS global layer, you can add the necessary MIME types at the lower level of the metabase. At this point, you can specify that sites or directories with specific file extensions are allowed to be processed, rather than allowing all sites to handle the extension globally.

Copyright © Windows knowledge All Rights Reserved