Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: HTTP Compression |
|
Author |
|
sradhakrishna
Joined: 14 Jun 2009 Posts: 1
|
Posted: Sun 14 Jun '09 10:09 Post subject: HTTP Compression |
|
|
Hi,
Am using XAMPP, with Apache 2.2.11. I would like to enable HTTP compression on all pages being served out of htdocs folder.
Can someone help me with configuring the server to do this?
I've tried adding these lines at the end of httpd.conf. Doesn't seem to help.
Code: |
AddOutputFilterByType DEFLATE text/html text/plain text/xml
SetOutputFilter DEFLATE
|
More, how do I set a limit, so that pages greater than the limit will be compressed?
Any help will be greatly appreciated.[/code] |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 16 Jun '09 20:26 Post subject: |
|
|
You could test how much traffic you save with a deflate log
Code: |
SetOutputFilter DEFLATE
DeflateCompressionLevel 9
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog C:/apache2/logs/deflate.log deflate
|
|
|
Back to top |
|
|
|
|
|
|