How does one configure IIS support EXE file download?

Source: Internet
Author: User

IIS supports the configuration method for downloading EXE files, as shown in the figure below. Let's take a look.

If you have set up a website in iisto download an exesuffix file, the. exe file cannot be downloaded.
In iis, the. exe file cannot be downloaded. When downloading, the system prompts that the file cannot be found. This is to improve the security of websites and their visitors to a certain extent. However, if we really need to download the EXE file on the website set up by IIS, how should we implement it?
In HTTP, each resource (the content pointed to by the URI) has a MIME type (the so-called mimetype ). In IIS, the file formats that can be downloaded are all defined in the mimetype list. Files with no filename suffix cannot be downloaded.


After setting this principle, you can add the suffix ".exe" to the MIME type list to download files in the EXE format.

The specific settings are as follows:

Open the IIS manager, right-click the site where you want to download files in EXE format, and select Properties. In the displayed dialog box, select the HTTP header tab and click "MIME type" in the lower-right corner of the tab to open the MIME type dialog box. Then select "new" in the MIME type dialog box. The extension is. EXE. You can enter the MIME type here and click OK. (Www.jbxue.com script School)

In this way, the EXE file can be downloaded under the site.

If you want all sites on IIS to download the EXE file, right-click the "website" node under IIS and select Properties. Set the MIME type.

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.