到mod_gzip的maillist才知道,mod_gzip不支持apache2,不知道有没有出新的版本,有人知道gzip的官方网站么?

解决方案 »

  1.   

    不知道,我的php4.3.2+apache2好像装好就支持
      

  2.   

    mod_gzip for apache2:http://www.gknw.net/development/apache/httpd-2.0/win32/modules/
    不过我个人的看法,在apache2下建议采用自带的mod_deflate,已经挺好用了。
      

  3.   

    谢谢上面的连接,现在能加载mod_gzip了,但是php页面显示一片空白,如下
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=gb2312"></HEAD>
    <BODY></BODY></HTML>htm,css,js等文件却正常
    我的配置文件是:
    <IfModule mod_gzip.c>
        mod_gzip_on Yes
        mod_gzip_item_include file \.htm$
        mod_gzip_item_include file \.html$
        mod_gzip_item_include mime text/.*
        mod_gzip_item_include file \.php$
        mod_gzip_item_exclude file "\.css$"
        mod_gzip_item_exclude file "\.js$"
        mod_gzip_item_include mime "application/x-httpd-php.*"
        mod_gzip_item_include mime httpd/unix-directory
        mod_gzip_dechunk yes
        mod_gzip_temp_dir "C:\Program Files\PHP Home Edition 2\Apache2\tmp"
        mod_gzip_keep_workfiles No
    </IfModule>
      

  4.   

    mod_gzip_item_include mime "application/x-httpd-php.*"
    应该写成:
    mod_gzip_item_include mime application/x-httpd-php
      

  5.   

    改了之后,没有什么改变。但是在日志中记载 
    xxx.xxx.xxx.xxx - - [08/Jul/2003:09:46:04 +0800] "GET /phpinfo.php HTTP/1.1" 200 31878这么浏览器就是显示空白呢?