logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: HTTP Compression
Author
sradhakrishna



Joined: 14 Jun 2009
Posts: 1

PostPosted: Sun 14 Jun '09 10:09    Post subject: HTTP Compression Reply with quote

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: 7355
Location: Germany, Next to Hamburg

PostPosted: Tue 16 Jun '09 20:26    Post subject: Reply with quote

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


Reply to topic   Topic: HTTP Compression View previous topic :: View next topic
Post new topic   Forum Index -> Apache