|
Home > Archive > Apache Server configuration support > January 2005 > mod_deflate working or not?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mod_deflate working or not?
|
|
| Oliver Spiesshofer 2005-01-20, 5:59 pm |
| 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
| |
| Alvaro G Vicario 2005-01-20, 5:59 pm |
| *** 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: www.example.com
Accept-Encoding: gzip,deflate
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
| |
|
| "Oliver Spiesshofer" <oliver@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
http://httpd.apache.org/docs-2.0/mo...flatefilternote
HansH
| |
| Oliver Spiesshofer 2005-01-21, 7:51 am |
| "HansH" <hans@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
|
|
|
|
|