DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd September 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default mod_gzip2 not compressing pages

I have installed mod_gzip2 and added the necessary info to apache's httpd.conf and yet http://www.gidnetwork.com/tools/gzip-test.php reports that my pages are not compressed. Here's my config:
Code:
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz

LoadModule gzip_module libexec/apache22/mod_gzip2.so

LogFormat "%h %l %u %t \"%r\" %>s %b mod_gzip: %{mod_gzip_compression_ratio}npct." common_with_mod_gzip_info1
LogFormat "%h %l %u %t \"%r\" %>s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}
LogFormat "%{mod_gzip_compression_ratio}npct." mod_gzip_info1
LogFormat "%{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct.

<IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
    mod_gzip_item_include mime text/.*
    mod_gzip_item_exclude file error/.*
    mod_gzip_item_exclude mime ^image/.*

mod_gzip_item_include       file \.jsp$
mod_gzip_item_include       file \.php$
mod_gzip_item_include       file \.pl$
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_dechunk yes

    mod_gzip_temp_dir "/tmp"
    mod_gzip_command_version mod_gzip_version
    CustomLog logs/gzip.log mod_gzip_info2
</IfModule>
I have tried it with and without the AddEncoding lines, I'm not sure about them.

Can anyone say what I'm doing wrong?
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does BSD loads web pages slow? bigb89 General software and network 10 27th October 2008 06:38 AM
Sun Java System Web Server - Active Server Pages (yes ASP) hopla FreeBSD General 0 26th September 2008 08:22 AM
One small question about portupgrade (and yes I HAVE read the man-pages!) wubrgamer FreeBSD Ports and Packages 7 20th September 2008 12:45 AM
Man pages obsolete? corey_james Other BSD and UNIX/UNIX-like 13 14th July 2008 07:59 PM
Man pages for X robbak Feedback and Suggestions 0 9th May 2008 12:32 AM


All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick