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
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: