The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_gzip httpd.conf code

Discussion in 'General Discussion' started by First Faze, Apr 10, 2002.

  1. First Faze

    First Faze Well-Known Member

    Joined:
    Jan 30, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Looking for anyone out there that might have experimented with the httpd.conf with mod_gzip code for optimum performance? I'm currently using:

    [code:1:fb3e373635]# mod_gzip stuff
    LoadModule gzip_module libexec/mod_gzip.so
    AddModule mod_gzip.c
    &IfModule mod_gzip.c&
    mod_gzip_on Yes
    mod_gzip_minimum_file_size 0
    mod_gzip_maximum_file_size 1000000
    mod_gzip_maximum_inmem_size 100000
    mod_gzip_item_include file .htm$
    mod_gzip_item_include file .html$
    mod_gzip_item_include file .shtml$
    mod_gzip_item_include file .shtm$
    mod_gzip_item_include file .jsp$
    mod_gzip_item_include file .php$
    mod_gzip_item_include file .php3$
    mod_gzip_item_include file .php4$
    mod_gzip_item_include file .pl$
    mod_gzip_item_include file .cgi$
    mod_gzip_item_include mime text/.*
    mod_gzip_item_include mime ^application/x-httpd-php
    mod_gzip_item_include mime httpd/unix-directory
    mod_gzip_item_include handler ^perl-script$
    mod_gzip_item_include handler ^server-status$
    mod_gzip_item_include handler ^server-info$
    mod_gzip_item_include file .css$
    mod_gzip_item_exclude file .js$
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_dechunk yes
    mod_gzip_temp_dir /tmp
    mod_gzip_keep_workfiles No
    mod_gzip_can_negotiate yes
    mod_gzip_item_exclude mime ^application/x-shockwave-flash
    mod_gzip_item_exclude file .swf$
    mod_gzip_command_version mod_gzip_version
    &/IfModule&[/code:1:fb3e373635]

    Wondering if anyone has other code / options that work better?
     
Loading...

Share This Page