IIS gzip compression on the Windows Server enables the _win server

Source: Internet
Author: User
Tags cpu usage
If the compressed dynamic file (php,asp,aspx) does not need to, because its page is dynamically generated every time, after the compression is discarded. Then in IIS Manager, the right key to the Web site-Properties, not one of the following sites, but the entire Web site. Go to the Services tab, select Enable dynamic content compression, static content compression.

Then select the server extension below the Web site to create a new server extension. Name doesn't matter, the following path to the Add file is:

C:\windows\system32\inetsrv\gzip.dll, and then enable this extension.

Static content can be compressed at this time, but for dynamic content, the ASPX file is not in the compression range. Because the default compressible file does not have this extension. In the admin interface you can't find a place to add an extension, and you can only modify its configuration file.

Under C:\windows\system32\inetsrv\ There is a MetaBase.xml file, you can open it with Notepad, find the IIsCompressionScheme, there are three sections of the same name, respectively, Deflate,gzip, Parameters, the third paragraph does not care about it, the first two paragraphs have the basic same parameters, in these two paragraphs of the parameters hcscriptfileextensions under a row of ASPX, if you have other dynamic program to compress, also add here. HcDynamicCompressionLevel changed to 9, (0-10,9 is the most cost-effective one).

Then you need to restart the IIS service, you can realize the speed after compression.

However, it is often not obvious that you can use the Http://www.port80software.com/tools/compresscheck.asp page to check if your page has been compressed, as well as the compression ratio and speed. The whole process of CPU usage is basically not felt.

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.