To configure HTTP Gzip compression in IIS Server 6.0

Source: Internet
Author: User

Microsoft Internet Information Server (IIS server) is an Internet file and application server included in the Microsoft Windows NT server operating system. IIS server version 4.0 is packed with Windows NT 4.0 options and can be shipped through free downloads or on a CD-ROM. It is also included in all new Windows NT versions.

Let's take a look at how to configure HTTP Gzip in IIS Server 6.0.

1) Open the Internet Information Service (IIS server) manager, right-click "website"-> "properties", and select "service ". In the HTTP compression box, select "compressing Application Files" and "compressing static files", and set "temporary directory" and "maximum temporary directory limit" as needed ";

2) in the Internet Information Service (IIS server) manager, right-click "Web Service extension"-> "Add a new Web Service extension ...", In the new Web Service Extension box, enter the extension "HTTP Compression" and add the required file "C: \ WINDOWS \ system32 \ inetsrv \ gzip. dll, the Windows System directory may vary depending on your installation, select "set extension status to allow ";

3) Open C: \ Windows \ System32 \ inetsrv \ meteBase in the text editor. xml (backup is recommended), find locetion = "/LM/W3SVC/Filters/Compression/gzip", and set HcDoDynamicCompression to "TRUE" If dynamic files need to be compressed ", add the dynamic file suffix you want to compress in HcFileExtensions, such as aspx.

To Compress static files, set HcDoStaticCompression and HcDoOnDemandCompression to "TRUE", and add the suffix of the static files to be compressed in HcFileExtensions, such as xml and css; hcDynamicCompressionLevel and HcOnDemandCompLevel indicate the required compression rate. The smaller the number, the lower the compression rate;

4) Save the meteBase. xml file after editing. If the file cannot be saved, it may be used by the IIS server. Choose Start> Administrative Tools> services and stop IIS Admin Service. Then, save the settings;

5) restart the IIS server. You can go to the HTTP compression test site to verify the results.

Related Article

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.