1. First step: Open IIS, enable HTTP compression service
Right-click Site, properties, and select Services. In the HTTP Compression box, select Compress application files and compress static files, set the maximum limit for temp directory and temp directory as needed
650) this.width=650; "Title = "111.jpg" src= "Https://s4.51cto.com/wyfs02/M01/99/B8/wKioL1lLgXLBKR7MAACKMqasXoY321.jpg-wh_500x0-wm_3-wmp_4-s_ 1084340379.jpg "alt=" wkiol1llgxlbkr7maackmqasxoy321.jpg-wh_50 "/>
2. Step Two: Enable Web services
650) this.width=650; "title=" 222.jpg "src=" https://s4.51cto.com/wyfs02/M02/99/B8/ Wkiol1llgbvilchnaac9r1eo7gu370.jpg-wh_500x0-wm_3-wmp_4-s_1917417407.jpg "alt=" Wkiol1llgbvilchnaac9r1eo7gu370.jpg-wh_50 "/>
3. Step Three: Stop the IIS Admin Service services in the service
Start > Run Input: services.msc
Locate the IIS Admin service stop in the services
4. Fourth Step: Modify MetaBase.xml
Start > Run input c:\windows\system32\inetsrv, find Metebase.xml, first back up, in modify. (Some servers do not need to modify this file to be used)
Search location = "/lm/w3svc/filters/compression/gzip"
Carefully check the code:
<iiscompressionscheme location = "/lm/w3svc/filters/compression/deflate" hccompressiondll= "%windir%\system32\inetsrv\gzip.dll" HcCreateFlags= "0" Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "FALSE" Hcdynamiccompressionlevel= "0" hcfileextensions= "htm HTML txt" hcondemandcomplevel= "hcpriority=" 1 " hcscriptfileextensions= "asp dll exe" ></iiscompressionscheme><iiscompressionscheme location = "/LM/W3SVC /filters/compression/gzip "hccompressiondll="%windir%\system32\inetsrv\gzip.dll "HcCreateFlags=" 1 " Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "true" Hcdynamiccompressionlevel= "0" hcfileextensions= "htm HTML txt" hcondemandcomplevel= "hcpriority=" 1 " hcscriptfileextensions= "asp dll exe" ></IISCOMPRESSIONSCHEME>
Replace with:
<iiscompressionscheme location = "/lm/w3svc/filters/compression/gzip" hccompressiondll= "%windir%\system32\inetsrv\gzip.dll" HcCreateFlags= "1" Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "true" Hcdynamiccompressionlevel= "hcfileextensions=" HTML cssjshtm XML txt "hcondemandcomplevel=" hcpriority= "1" hcscriptfileextensions= "Phpdll" ></iiscompressionscheme><iiscompressionscheme location = "/LM/W3SVC/ Filters/compression/deflate "hccompressiondll="%windir%\system32\inetsrv\gzip.dll "HcCreateFlags=" 2 " Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "true" Hcdynamiccompressionlevel= "hcfileextensions=" HTML cssjshtm XML txt "hcondemandcomplevel=" hcpriority= "1" hcscriptfileextensions= "Phpdll" ></IISCOMPRESSIONSCHEME>
Then, after saving the Metebase.xml, save it and start IIS again. This enables the GZIP compression to be enabled successfully.
This article is from the "high-tech blog" blog, please be sure to keep this source http://gpj1997.blog.51cto.com/12830710/1941011
Website gzip compression