Windows IIS7.5/6 enable gzip compression

Source: Internet
Author: User
Tags metabase

We know that gzip compression is a very good thing, it can greatly save the bandwidth of the server. Gzip compression is mainly for HTML and other text files, its compression ratio is very high. A 100KB Web page that may be compressed to only 10-20kb, bandwidth usage will drop by 90%. Enabling gzip by consuming a certain amount of CPU and memory resources can be said to be a cost-effective thing.

So how do I turn on gzip compression?


Let's talk about how Windows 2008 works, and Windows 2008 runs IIS7.5.

A, plus a server extension: Internet Information Services (IIS) Manager >> Web Service Extensions >> add a new Web service extension ">>" extension "casually fill >>" Required file "add" c:/ Windows/system32/inetsrv/gzip.dll ">> Check" set extension status to allow ">> OK";

B, IIS-enabled HTTP compression: Internet Information Services (IIS) Manager >> right-click Web site >> Properties >> Services >> Check "Compress application Files" and "Compress static Files" > > "Temp directory" can manually specify the directory >> "OK" with "IUSR_ Machine name" Write permission;

C, add the default unsupported dynamic paging file (aspx): Open "C:/windows/system32/inetsrv/metabase.xml" with Notepad >> find "IIsCompressionScheme" three-segment configuration >> Modify the "hcdynamiccompressionlevel" parameter of "deflate" and "gzip" to "9" and add "aspx" to the "hcscriptfileextensions" argument >> Stop the IIS service >> save the MetaBase.xml that you just changed and replace >> start the service in IIS Manager in IIS Manager.


Then talk about the IIS6 settings on Windows 2003.

1. Open IIS
2, right click on the left navigation bar on the "site" two words, select Properties, you can open the global Web Site Properties Settings dialog box.
3, click on the "Services" tab, here is about gzip related settings.
4, under the HTTP compression, check "Compressed application Files" (that is, dynamic files) and "Compressed static file", you can turn on gzip compression.
5, other settings like IIS7.5, you can set the temporary file path and so on.

About gzip compression, Hongo introduced here, hope to help everyone.

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.