IIS support EXE file download configuration method Fig _win Server

Source: Internet
Author: User

IIS support EXE file download configuration method, with a diagram, take a look.

How to set up a file in IIS to download an EXE suffix, the. exe file cannot be downloaded by default.
In IIS, the. exe file cannot be downloaded by default and is prompted to not find the file when downloading. This is to improve the security of the website and its visitors to some extent. However, if we do need to be built on the IIS Web site to provide exe file downloads, how should be implemented?
In the HTTP protocol, each resource (the content that the URI points to) has a MIME type (that is, the so-called mimetype). In IIS, the file formats that can be downloaded are defined in the MimeType list, and no defined file suffixes can be downloaded.

Having understood this principle, we can add the. exe suffix to the MIME type list, so that you can download the EXE-formatted file.

The specific settings are as follows:

Open IIS Manager, right-click the site where you want to set the file to download EXE format, and select Properties. In the pop-up dialog box, select the HTTP Headers tab and click the MIME Type button at the bottom right of the tab to open the MIME Type dialog box. Then, in the MIME Type dialog box, select New, with the extension:. Exe,mime type you can fill it out here, and then make sure you go all the way.

In this way, the site, exe file can be downloaded.

If you want all sites on IIS to be able to download the exe file, right-click the Web site node under IIS and select Properties. Then 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.