Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
Cpanel install a preconfigured mod_gzip installing apache

I suggest these modifications

FROM
mod_gzip_maximum_file_size 0
TO
mod_gzip_maximum_file_size 500000

0 means unlimited and it could be a problem with extremely large html files

FROM
mod_gzip_temp_dir /tmp
TO
mod_gzip_temp_dir /tmp/gzip
(don't forget to do #mkdir /tmp/gzip;chmod 777 /tmp/gzip)

so you can track mod_gzip usage better .

FROM
mod_gzip_maximum_inmem_size 1000000
TO
mod_gzip_maximum_inmem_size 60000

(I cannot understand why Cpanel set a value so high, 1000000 ! It could cause problems)


then I suggest you to ADD
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST


REMOVE LINE
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
bugzilla
http://bugzilla.cpanel.net/show_bug.cgi?id=1458

Infact documents writes
# From version 1.3.19.2a on I advise against using filters
# for User-agents, as this will cause HTTP-Headers 'Vary: User-Agent'
# to be generated


If you want log for some time to check out it works
ADD
LogFormat "%h %l %u %t \"%V %r\" %<s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n -< Out:%{mod_gzip_output_size}n = %{mod_gzip_compression_ratio}n pct." common_with_mod_gzip_info2

CustomLog logs/mod_gzip.log common_with_mod_gzip_info2
mod_gzip_add_header_count Yes


Restart apache

To understand messages received in mod_giz log file
read http://www.schroepl.net/projekte/mod_gzip/status.htm



Then comment these lines if you are just using a php accelerator (for example mmcache)
#mod_gzip_item_include file \.php$
#mod_gzip_item_include file \.phps$
#mod_gzip_item_include mime ^application/x-httpd-php.*



DOCUMENTATION
http://www.schroepl.net/projekte/mod_gzip/config.htm
 
Last edited:

Rubas

Well-Known Member
Sep 15, 2003
125
0
166
Some additions for the configuration:

mod_gzip_send_vary Yes

<Files ~ "\.(gif|jpe?g|png|bmp)$">
mod_gzip_on no
</Files>
 

damainman

Well-Known Member
Nov 13, 2003
515
0
166
I read it when you first posted it :)... was waiting to see if cpanel responded to it though.
 

webignition

Well-Known Member
Jan 22, 2005
1,880
0
166
Rubas said:
<Files ~ "\.(gif|jpe?g|png|bmp)$">
mod_gzip_on no
</Files>
Instead of this you could include the line:

Code:
mod_gzip_item_exclude mime ^image/
This comparision seems a little less intentsive than the above quoted comparision and so might reduce load a little.

Although please correct me if I'm wrong!
 

checksoft

Well-Known Member
Mar 16, 2002
67
0
306
Radio_Head said:
After 6 months (!!!) they are finally considering my bugzilla ..
http://bugzilla.cpanel.net/show_bug.cgi?id=1458
This bug has recently been added to the database. Nobody has validated that this bug is true. Users who have the "canconfirm" permission set may confirm this bug, changing its state to NEW. Or, it may be directly resolved and marked RESOLVED.

Looks like it still isn't ready for prime time?