最新IIS6如何开启GZIP压缩图文教程.docVIP

  • 2
  • 0
  • 约1.92千字
  • 约 4页
  • 2017-06-07 发布于重庆
  • 举报
最新IIS6如何开启GZIP压缩图文教程

未开启gzip时查询 找一个工具网站, 输入自己的网址查询gzip压缩: 打开IIS,启用HTTP压缩服务 右击“网站”- “属性”,选择“服务”。在“HTTP压缩”框中选中“压缩应用程序文件”和“ 压缩静态文件”,按需要设置“临时目录”和“临时目录的最大限制”; 启用web服务 修改配置数据库 开始 运行中输入 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 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 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 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 htm xml txt HcOnDemandCompLevel 10 HcPriority 1 HcScriptFileExtensions php dll 修改好后重启IIS。 查看是否生效 还是第一步查看的网址, 输入我们自己的网址后查看如下说明已经成功开启

文档评论(0)

1亿VIP精品文档

相关文档