[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Mod gzip problems?



I just installed mod_gzip onto a test box (one we're running webyourbusiness.com on) - I'm wondering if there are any implication on logfile processing for either RAQ inbuilt stats, or webalizer stats from the following installation.... here are my installation instructions in the form of a "how-to".  Anyone can publish this how-to  information on their site under the condition they link back to WebYourBusiness.com with credit to me (Greg Hewitt-Long).



Instructions for installation of mod_zip.so into Apache 1.3 installation - from source compilation method (most reliable)

ssh onto you box - 

wget http://heanet.dl.sourceforge.net/sourceforge/mod-gzip/mod_gzip-1.3.26.1a.tgz
gunzip mod_gzip-1.3.26.1a.tgz
tar xvf mod_gzip-1.3.26.1a.tar
cd mod_gzip-1.3.26.1a
#edit Makefile if your path to set the correct path to apxs - it was /usr/local/bin/apxs - mine was /usr/sbin/apxs

make

# copy the resulting .so file to your apache modules folder (mine was /usr/lib/apache/) - you should find a lot of .so file there

cp mod_gzip.so /usr/lib/apache/

# edit the apache httpd.conf


PUT EVERYTHING UNTIL _THE_END_ INTO YOUR HTTPD.CONF
# GHL - mod_gzip - code begins
LoadModule gzip_module modules/mod_gzip.so
<IfModule mod_gzip.c>
mod_gzip_on                   Yes
mod_gzip_can_negotiate        Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version      '/mod_gzip_status'
mod_gzip_keep_workfiles       No
mod_gzip_minimum_file_size    500
mod_gzip_maximum_file_size    500000
mod_gzip_maximum_inmem_size   60000
mod_gzip_min_http             1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude         reqheader  "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include         file       \.html$
mod_gzip_item_exclude         file       \.js$
mod_gzip_item_exclude         file       \.css$
mod_gzip_item_include         file       \.pl$
mod_gzip_item_include         handler    ^cgi-script$
mod_gzip_item_include         mime       ^text/html$
mod_gzip_item_include         mime       ^text/plain$
mod_gzip_item_include         mime       ^httpd/unix-directory$
mod_gzip_item_exclude         mime       ^image/
mod_gzip_dechunk              Yes
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
mod_gzip_send_vary Yes
</IfModule>

# GHL - mod_gzip - code ends
_THE_END_

# restart apache

/usr/sbin/httpd restart

# Test your GZIP compression at:

# http://leknor.com/code/gziped.php
-- 
E-Commerce Software & Web Design Services. http://webyourbusiness.com
Reliable Web Hosting from $4.99/month - http://www.aaabusinesshosting.com/
Domain Registration from $13/year - http://aaabusinesshosting.com/domains/
     TF: 1-877-416-8655   PH: (970) 266-0195   FAX: (970) 266-0158