Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

mod_deflate working or not?

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  IE Vs. FF :)  
Author Message
oliver

External


Since: Jul 08, 2004
Posts: 11



(Msg. 1) Posted: Thu Jan 20, 2005 11:35 am
Post subject: mod_deflate working or not?
Archived from groups: alt>apache>configuration (more info?)

hi,

I am running apache 2.0.50 on a windows XP machine.
I would like to enable mod_deflate for a php-driven website.

The directives I put into the httpd.conf seem to work sine apache starts up
fine, but I am not sure if the output is compressed or not.
I got the link to a website (leknor.com) that can check it, but my server
is intranet-only so I cannot access it from the internet to see if the
compression is working with that tool.

I have the following setup:

LoadModule deflate_module modules/mod_deflate.so

and in the <VirtualHost *>
I have a
SetOutputFilter DEFLATE

Is that enough at all? What else do I need? The page is displayed with IE
and Opera just fine, but how do I know its compressed?
I am using AwStats as a logfile analyzer, and it has a section to show
compression ratio of files, but the fields for that stay empty, so I assume
that something is not working right

thanks for the help.

Oliver

 >> Stay informed about: mod_deflate working or not? 
Back to top
Login to vote
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 2) Posted: Thu Jan 20, 2005 12:35 pm
Post subject: Re: mod_deflate working or not? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Oliver Spiesshofer wrote/escribió (Thu, 20 Jan 2005 15:56:56 GMT):
 > Is that enough at all? What else do I need? The page is displayed with IE
 > and Opera just fine, but how do I know its compressed?

Mozilla/Firefox have an extension called "Live HTTP Headers" which allow
you to see whether it's compressed. Response headers should contain:

Content-Encoding: gzip

Alternatively, you can telnet to port 80 and send commands by hand:

GET /whatever/file HTTP/1.1
Host: <a style='text-decoration: underline;' href="http://www.example.com" target="_blank">www.example.com</a>
Accept-Encoding: gzip,deflate


--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: mod_deflate working or not? 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 3) Posted: Thu Jan 20, 2005 2:35 pm
Post subject: Re: mod_deflate working or not? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Oliver Spiesshofer" <oliver.TakeThisOut@email.com> schreef in bericht
news:Xns95E4AC69417A9oliveremailcom@63.223.5.251...
 > I am running apache 2.0.50 on a windows XP machine.
 > I would like to enable mod_deflate for a php-driven website.
Keep your php scripts from zipping their outpur for you ...

 > I have a
 > SetOutputFilter DEFLATE
As some (brand and versions of ) browsers fail on images, PDFfiles or
archives, if those are transfered zipped, rather use
AddOutputFilterByType DEFLATE text/plain text/html text/css
-add xml mime-types if you need them-

Now, your php scripts have to set the proper mime-type header to get DEFLATE
going.

 > I am using AwStats as a logfile analyzer, and it has a section to show
 > compression ratio of files, but the fields for that stay empty, so I
assume
 > that something is not working right
Have the compression ratio logged
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_deflate.html#deflatefilternote" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_deflate.html#deflatefilternote</a>


HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: mod_deflate working or not? 
Back to top
Login to vote
oliver

External


Since: Jul 08, 2004
Posts: 11



(Msg. 4) Posted: Fri Jan 21, 2005 5:35 am
Post subject: Re: mod_deflate working or not? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"HansH" <hans.TakeThisOut@niet.op.het.net> wrote in
news:41efff99$0$6217$e4fe514c@news.xs4all.nl:

 > AddOutputFilterByType DEFLATE text/plain text/html text/css

thanks, all this worked fine now!
I had some of the directives misplaced.

Oliver<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: mod_deflate working or not? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mod_deflate is gzipping my png images -- is there anyway t.. - Hi, I'm trying to get mod_deflate to not compress my images based on the mime-type (image/png) in the document not the request uri. I currently have a bunch of servlets that output pngs, but lack a file extension of .png. So the common idiom of using the...

Need help getting SSL working - I configured Apache 2.0 with RH9. Apache serves up unencrypted pages just fine. I then change my httpd.conf file to listen on port 443 as illustrated below: Listen 192.168.1.101:443 When I try to restart Apache, I get the following error: (98)Address..

PHP Working??? - I just set up apache 2.0.48 and PHP 4.3.4 and thought it was working well. I can pull up pages with .php extensions and some parts of the code work such as date functions and includes (pretty much all I've tested so far) but when I try to use variables..

SSI not working - Hello, I have a client who's web designer insists on using SSI includes. I have the server configured to allow SSI, but it seems not to work, no matter what I do. The include looks like this : <!--#include virtual="header.html" --> ...

Can't Get it working Right - I've made several attempts to install Apache, but could never get it to work right. I actually had it running priorly on an install of ColdFusion 4.0 but installed a new HDD. When I was re-installing image to new HDD got a virus or hacker attack, last....
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]