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.