Article ID: 6506, created on Jul 6, 2009, last review on May 10, 2014

  • Applies to:
  • H-Sphere

Resolution

1. Log on to the Web server as root

2. Change to your favorite directory to download software to be installed.

cd /usr/local/src

Download latest version (as of 5/16/2003 the url below).

wget http://aleron.dl.sourceforge.net/sourceforge/mod-gzip/mod_gzip-1.3.26.1a.tgz

3. gzip -d -c mod_gzip-1.3.26.1a.tgz | gtar xvf -

Replace the file name above with the most current version.

4. cd mod_gzip-1.3.26.1a

Replace the directory name above with the most current version.

5. Edit the make file ==> vi Makefile

Make sure the APX line reads as follows:

APXS?=/hsphere/shared/apache/bin/apxs

6. Run make

make
make install

7. Edit the httpd.conf file

vi /hsphere/local/config/httpd/httpd.conf

Place the following in the "if module loaded section"

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_minimum_file_size 100
mod_gzip_maximum_file_size 256000
mod_gzip_maximum_inmem_size 1000000
mod_gzip_item_include file \.CP$
mod_gzip_item_include file \.Builder$
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 \.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_exclude 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
</IfModule>

8. Restart the Web server

/etc/init.d/httpd restart

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF