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.