
|
View Full Version : Gzipped or Not ?
| Hey ,
i installed mod_gzip on my server
but it doesnt seem to be working :D
on the header of the html files i see "mod_gzip/1.3.19.1a "
but it just doesnt work ,
you can see what leknor.com say (http://leknor.com/code/gziped.php?url=http%3A%2F%2Fwww.hagai.net%2F) about that .
Please Help Me
Thank You |
zupanm 01-28-2002, 02:07 PM this is your problem
Forbidden
You don't have permission to access / on this server.
you either have no content or add a index.html and then test it. mod_gzip won't send the errrors in gzipped format |
| sorry
here's a working one
http://leknor.com/code/gziped.php?url=http://www.chiquititas.hagai.net/pmi.html |
jarrod 01-28-2002, 02:45 PM Might want to make sure you have the following in your httpd.conf file. Don't know if it is required but it is in mine and mod_gzip is working:
mod_gzip_on Yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_dechunk Yes
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 60000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.phtml$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.txt$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_exclude file .css
mod_gzip_item_exclude file .js
mod_gzip_item_include mime application/x-httpd-php.* |
i fallowed the insructions i found in http://www.hostingdiscussions.com/
i have on my httpd.conf
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_min_http 1001
mod_gzip_temp_dir /tmp/mod_gzip
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_command_version mod_gzip_show_version
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include file \.pl$
#mod_gzip_item_include file \.jpg$
#mod_gzip_item_include file \.gif$
#mod_gzip_item_include file \.swf$
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include mime text/html
mod_gzip_item_include mime text/plain
mod_gzip_item_include mime text/richtext
mod_gzip_item_include mime text/.*
#mod_gzip_item_include mime image/jpeg
#mod_gzip_item_include mime image/gif
mod_gzip_item_include mime application/x-httpd-php.*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_exclude file "\.htaccess$"
mod_gzip_item_exclude file "\.htpasswd$"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
mod_gzip_item_exclude mime text/ht
mod_gzip_item_include handler ^server-info$
mod_gzip_item_exclude mime ^image/.*
mod_gzip_can_negotiate yes
</IfModule>
anyone can see whats wrong here ?
as i stated , in the header of the html i see mod_gzip , but it isnt working . |
ffeingol 01-29-2002, 09:40 AM Couldyou post the URL of a working page? It's not going to compress an error page.
Frank |
i posted
http://leknor.com/code/gziped.php?url=http://www.chiquititas.hagai.net/pmi.html
http://www.chiquititas.hagai.net/pmi.html |
ffeingol 01-29-2002, 10:27 AM Sorry, I missed the link.
Just to check a couple of the obvious ones. Did you restart Apache after making the change? Does the directory "/tmp/mod_gzip " exist? Can you check your error logs for any error messages.
Frank |
yes i restarted apache ( and even all server )
there is a dir tmp/mod_gzip and there are even .wrk files in it !
i dont see any errors involved to this .
thanks
ben |
jarrod 01-29-2002, 11:01 AM another quick idea... I know I have had to put all those config lines into any <VirtualHost> that I have in order for it to work on that site. |
Originally posted by jarrod
another quick idea... I know I have had to put all those config lines into any <VirtualHost> that I have in order for it to work on that site.
can you please be more spacific , im still new with the server , what do i need to do , where is "<VirtualHost>" ?
10x |
jarrod 01-29-2002, 11:11 AM It is used to host more than 1 site using 1 instance of apache, there is a 99% chance you arent using that feature since you didn't know what it was so just disregard my idea =] |
Originally posted by jarrod
It is used to host more than 1 site using 1 instance of apache, there is a 99% chance you arent using that feature since you didn't know what it was so just disregard my idea =]
ok, if anyone else has an idea plz tell me, its strange that there are files in the temp.
10x |
allera 01-29-2002, 01:09 PM Originally posted by jarrod
another quick idea... I know I have had to put all those config lines into any <VirtualHost> that I have in order for it to work on that site.
You don't need to put anything in <VirtualHost> directives.
Your problem is in the "mod_gzip_min_http 1001." Change it to "mod_gzip_min_http 1000" and Leknor should pick it up. The reason you have .wrk files is because some people who have visited your pages have 1001 capabilities. Leknor doesn't seem to.
In short, your mod_gzip is working. Set the above setting and Leknor will pick it up. |
Originally posted by allera
You don't need to put anything in <VirtualHost> directives.
Your problem is in the "mod_gzip_min_http 1001." Change it to "mod_gzip_min_http 1000" and Leknor should pick it up. The reason you have .wrk files is because some people who have visited your pages have 1001 capabilities. Leknor doesn't seem to.
In short, your mod_gzip is working. Set the above setting and Leknor will pick it up.
it doesnt work .....
i changed it to 1000 , and even to 10 , it just doesnt work ( i restarted apache ) ,
i saw few insrtuctions that doesnt include this line , but if i remove that , it doesnt work .
if as you said the mod do work , its probaly as you stated in very few comp's coz i dont see a "real" change in bw .
thank you
Ben |
Cyborg 01-30-2002, 01:12 AM HostingFreak
try this one:
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
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_item_exclude file authorizationRequired.html
mod_gzip_item_exclude file fileNotFound.html
mod_gzip_item_exclude file internalServerError.html
mod_gzip_item_exclude file forbidden.html
mod_gzip_dechunk yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate yes
</IfModule>
Cyborg |
ITS WORKING !!!!!!!!
THANK YOU VERY MUCH !!!!!
now im gonna find out what cused the problem !
thanks |
the mod_gzip is all installed and everything , but i still dont see any change in bw usage :( :(
can anyone figure out what is going on and tell me what i can do ? |
allera 01-31-2002, 11:59 AM How much bandwidth is being served out of the server and what type of things is it serving? |
im serving about 4.5 gb a day which is 99% static files ( html pics etc. ) |
ffeingol 01-31-2002, 12:04 PM How are you checking what your transfer is?
You might want to add the following to your apache config:
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}npct." common_with_mod_gzip_info2
CustomLog /path/to/logs/mod_gzip common_with_mod_gzip_info2
That will create a "mod_gzip" log. You can then use that with mgstat (http://wizard.ae.krakow.pl/~mike/mgstat/) to see what mod_gzip is doing.
Frank |
im using webalizer now ,
when i try adding this logformat because this line is too long it splits it and later doesnt allow to restart apapce
but i added :
LogFormat "%h %l %u %t \"%r\" %>s %b gzip: %{mod_gzip_compression_ratio}npct." gzip
and the log shows
***.***.***.*** - - [31/Jan/2002:19:09:07 -0500] "GET / HTTP/1.1" 301 317 gzip:-pct.
***.***.***.***- - [31/Jan/2002:19:09:08 -0500] "GET /pmi.html HTTP/1.1" 301 335 gzip: -pct.
as you can see it doesnt say how many % save . |
ffeingol 01-31-2002, 12:32 PM hmm. when you say the "line wrapped" are you using pico as an editor? I know pico will wrap long lines, but I can't remember how to turn it off.
We get records like this in our log file:
*.*.*.* - - [31/Jan/2002:12:22:19 -0500] "www.*.com GET /blah.php HTTP/1.1" 200 3572 mod_gzip: DECHUNK:OK In:11410 Out:3572:69pct. |
jarrod 01-31-2002, 12:45 PM pico -w <file>
will do the trick of not wrapping lines. |
well , there is probaly somethign wrong , added log and getting
***.***.***.*** - - [31/Jan/2002:21:04:39 -0500] "chiquititas.hagai.net GET / HTTP/1.1" 301 327 mod_gzip: - In:- Out:-:-pct.
the qustion is what , why doesnt it work well ? |
|