Enable GZip compression for IIS7.5/6 in windows

Source: Internet
Author: User
Tags metabase

This article introduces how to enable GZip compression for IIS7.5/6 in windows. The text method is not an image. Because it is relatively simple, no text is sent.

We know that GZip compression is a very good thing, which can greatly save the server bandwidth. GZip compression is mainly used for html and other text files. The compression ratio is very high. A 90% kb web page may be compressed to only 10-20 KB, and the bandwidth usage will decrease. It is a very cost-effective task to enable GZip by consuming a certain amount of CPU and memory resources.

How to enable GZip compression?


Let's talk about the operation method on Windows 2008. IIS7.5 is run on Windows 2008.

A. Add a Server Extension: [Internet Information Service (IIS) manager> [Web service extension]> "Add a new Web Service extension"> "Enter the extension as needed> Add" C: /windows/system32/inetsrv/gzip. dll> select "set extension status to allow"> OK ];

B. enable HTTP compression for IIS: [Internet Information Service (IIS) manager> right-click [website]> "properties"> "service"> check "compressing Application Files" and "compressing static files"> "temporary directory ". manually specify a directory with the write permission of "IUSR _ machine name"> [OK ];

C. Add a dynamic page file (aspx) that is not supported by default. use NotePad to open "C:/windows/system32/inetsrv/MetaBase. xml> Search for the three-section configuration of "IIsCompressionScheme"> modify the "HcDynamicCompressionLevel" parameter of the "deflate" and "gzip" segments to "9" and add "HcScriptFileExtensions" aspx "> stop IIS service in IIS Manager> Save the modified MetaBase. xml and replace> start the service in IIS manager.


Then let's talk about the IIS6 settings on Windows 2003.

1. Open IIS
2. Right-click "website" on the left navigation bar and select Properties to open the global website attribute Settings dialog box.
3. Click the "service" tab. Here is the GZip settings.
4. Under HTTP compression, select "compressing Application Files" (that is, dynamic files) and "compressing static files" to enable GZip compression.
5. Similar to IIS7.5, you can also set temporary file paths.

Hong GE will introduce GZip compression here and hope to help you.

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.