Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

mod_gzip comments

(Page 2 of 2)
> >
Quote Reply
Re: mod_gzip comments In reply to
Whoah just got it working - it makes the pages load SO FAST!!

In:28630 Out:3275


Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: mod_gzip comments In reply to
i have compiled and loaded mod_gzip into server, i tried to add the custom log here's wut i add to httpd.conf howver whe i retsrt the sver, an error of invalid command 'CustomLog' appeared? any suggestions?

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}n:%{mod_gzip_compression_ratio}npct."
common_with_mod_gzip_info2

CustomLog logs/access.log common_with_mod_gzip_info2


Quote Reply
Re: mod_gzip comments In reply to
You can't have it on seperate lines.

The LogFormat line must all be one line and the CustomLog must be another.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: mod_gzip comments In reply to
did as told but still same error, possibel if someone let me view their httpd.conf the part wherre they have the customlog? thx

Quote Reply
Re: mod_gzip comments In reply to
If you get that error, it means mod_log_config isn't compiled into Apache (very strange as this is normally installed, and handles logging in Apache). You'll need to either check with your ISP, or recompile Apache (or add it in if you are using dso).

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_gzip comments In reply to
now i got the customlog to work but however for everyfile HTTP/1.1" 200 1005 mod_gzip: DECLINED:OFF In:0 Out:0:0pct

it's not doing the compression, any suggestions on why?

Quote Reply
Re: mod_gzip comments In reply to
update: now i got the gzip to compress, html php file, but however it just refuse to compress cgi and perl files, here's my setting

mod_gzip_on Yes
mod_gzip_minimum_file_size 10
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000000
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.php3$
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 ^cgi-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/.*


Quote Reply
Re: mod_gzip comments In reply to
hmmm, disregrd last msg, it seems to do gzip cgi files inside the cgi-bin, but not outside them! for my cgis to run outside cgi bin i added AddHandler cgi-script .cgi .pl to those dirs at vhosts conf, and i think this must be the problem, any suggestions?

Quote Reply
Re: mod_gzip comments In reply to
after some more hrdwork, i finally get another piece of the puzzle, the content type of that cgi is text/html; charset=iso-8859-1 how should i config to allow text/html; charset=iso-8859-1 ?

p.s: regular the cgis i tried work have the type only text/html

> >