本页内容是《如何启用Gzip压缩 启用服务器gzip让网站速度飞起来》同时我们还提供济宁地区的网站建设,百度,雅虎,google的推广,点金,商友,等营销软件
请输入关键字:

标题搜索 内容搜索  

你现在所在的位置->首页->windows2003->如何启用Gzip压缩 启用服务器gzip让网站速度飞起来

如何启用Gzip压缩 启用服务器gzip让网站速度飞起来

时间:[2015-6-5 12:08:37]     作者:请作者尽快与我们联系。

第一步:打开IIS,启用HTTP压缩服务

右击“网站”->“属性”,选择“服务”。在“HTTP压缩”框中选中“压缩应用程序文件”和“ 压缩静态文件”,按需要设置“临时目录”和“临时目录的最大限制”;

第二步:启用web服务

第三步:修改MetaBase.xml

开始 > 运行中输入 c:\windows\system32\inetsrv,找到 MeteBase.xml,先备份,在修改。(有的服务器不需要修改此文件便可以使用)

搜索 Location ="/LM/W3SVC/Filters/Compression/gzip"

仔细核对下代码:

<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="10" 
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="10" 
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="10" 
HcFileExtensions="html 
css 
js 
htm 
xml 
txt" 
HcOnDemandCompLevel="10" 
HcPriority="1" 
HcScriptFileExtensions="php 
dll" 

</IIsCompressionScheme> 
<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/deflate" 
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll" 
HcCreateFlags="2" 
HcDoDynamicCompression="TRUE" 
HcDoOnDemandCompression="TRUE" 
HcDoStaticCompression="TRUE" 
HcDynamicCompressionLevel="10" 
HcFileExtensions="html 
css 
js x
htm 
xml 
txt" 
HcOnDemandCompLevel="10" 
HcPriority="1" 
HcScriptFileExtensions="php 
dll" 

</IIsCompressionScheme>

修改好后,在服务中停止IIS Admin Service 服务。

然后在保存MeteBase.xml,保存好后再启动IIS。这样Gzip压缩就启用成功了。

最后,测试Gzip压缩是否成功,可以到站长工具进行检测。

【声明】本站刊载的《如何启用Gzip压缩 启用服务器gzip让网站速度飞起来》一文如果有侵害你权益的情况,请联系我们。我们将及时采取措施。
QQ:44637339 Email:just6@163.com Tel:13355163107 Lining studios

友情链接

本页内容是《如何启用Gzip压缩 启用服务器gzip让网站速度飞起来》 返回顶部
© 2001-2024 Lining studios 济宁速创科技有限公司, All Rights Reserved
 Processed Time:62.500ms
中华人民共和国信息产业部网站备案号: 鲁ICP备09103015号-1