<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Speed up Apache 2.0 web access or downloads with mod_deflate</title> <atom:link href="http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Vidyadhar</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-178538</link> <dc:creator>Vidyadhar</dc:creator> <pubDate>Sat, 14 Jan 2012 08:28:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-178538</guid> <description>0 down vote favorite
share [fb] share [tw]
I want to enable compression in apache. For the same I am trying to use deflate module of apache.
I have already installed apache 2. But it is a default installation and in that mod_deflate is not enable. Now I am compiling mod_deflate module by using following commands:
cd /usr/local/src/httpd-2.2.21/modules/filters/
/usr/local/apache/bin/apxs -i -c -Wl,lz mod_deflate.c
After doing it I have added following line in my httpd.conf file
LoadModule deflate_module modules/mod_deflate.so
but as soon as i do syntax check I am getting following error httpd: Syntax error on line 417 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_deflate.so into server: /usr/local/apache/modules/mod_deflate.so: undefined symbol: inflate
Following is the output of ldd command
linux-gate.so.1 =&gt;  (0x00b2d000)
libc.so.6 =&gt; /lib/i386-linux-gnu/libc.so.6 (0x00110000)
/lib/ld-linux.so.2 (0x008e6000)
Please help as i dont want to compile apache again.</description> <content:encoded><![CDATA[<p>0 down vote favorite<br
/> share [fb] share [tw]</p><p>I want to enable compression in apache. For the same I am trying to use deflate module of apache.</p><p>I have already installed apache 2. But it is a default installation and in that mod_deflate is not enable. Now I am compiling mod_deflate module by using following commands:</p><p>cd /usr/local/src/httpd-2.2.21/modules/filters/<br
/> /usr/local/apache/bin/apxs -i -c -Wl,lz mod_deflate.c</p><p>After doing it I have added following line in my httpd.conf file</p><p>LoadModule deflate_module modules/mod_deflate.so</p><p>but as soon as i do syntax check I am getting following error httpd: Syntax error on line 417 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_deflate.so into server: /usr/local/apache/modules/mod_deflate.so: undefined symbol: inflate</p><p>Following is the output of ldd command</p><p>linux-gate.so.1 =&gt;  (0x00b2d000)<br
/> libc.so.6 =&gt; /lib/i386-linux-gnu/libc.so.6 (0&#215;00110000)<br
/> /lib/ld-linux.so.2 (0x008e6000)</p><p>Please help as i dont want to compile apache again.</p> ]]></content:encoded> </item> <item><title>By: Eloy Leja</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-174112</link> <dc:creator>Eloy Leja</dc:creator> <pubDate>Mon, 19 Sep 2011 04:15:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-174112</guid> <description>Hi there can I quote some of the material here in this site if I reference you with a link back to your site?</description> <content:encoded><![CDATA[<p>Hi there can I quote some of the material here in this site if I reference you with a link back to your site?</p> ]]></content:encoded> </item> <item><title>By: Triactol</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-173215</link> <dc:creator>Triactol</dc:creator> <pubDate>Thu, 11 Aug 2011 07:54:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-173215</guid> <description>I am not sure where you&#039;re getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent info I was looking for this info for my mission.</description> <content:encoded><![CDATA[<p>I am not sure where you&#8217;re getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent info I was looking for this info for my mission.</p> ]]></content:encoded> </item> <item><title>By: Fuming Solder</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-171377</link> <dc:creator>Fuming Solder</dc:creator> <pubDate>Wed, 18 May 2011 00:51:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-171377</guid> <description>Somehow I still have issues with IE8 corrupting zip files even though zip files are specifically excluded from further gzipping with
SetEnvIfNoCase Request_URI \.(?:exe&#124;t?gz&#124;zip&#124;bz2&#124;sit&#124;rar)$ no-gzip dont-vary
Does anyone have a clue why this regex mey not be working with Apache/2.2.11 (Unix) ? Or is there another reason Apache keeps gzipping zip files (and IE8 does not recognize that the file has been compressed twice) ?
Thanks!</description> <content:encoded><![CDATA[<p>Somehow I still have issues with IE8 corrupting zip files even though zip files are specifically excluded from further gzipping with</p><p>SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary</p><p>Does anyone have a clue why this regex mey not be working with Apache/2.2.11 (Unix) ? Or is there another reason Apache keeps gzipping zip files (and IE8 does not recognize that the file has been compressed twice) ?</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: sim so dep</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-168470</link> <dc:creator>sim so dep</dc:creator> <pubDate>Thu, 27 Jan 2011 12:21:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-168470</guid> <description>Hey cool weblog, simply questioning what anti-spam software program you utilize for comments because i get heaps on my blog. Anyway, in my language, there are not much good source like this.</description> <content:encoded><![CDATA[<p>Hey cool weblog, simply questioning what anti-spam software program you utilize for comments because i get heaps on my blog. Anyway, in my language, there are not much good source like this.</p> ]]></content:encoded> </item> <item><title>By: Daniel</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-153162</link> <dc:creator>Daniel</dc:creator> <pubDate>Wed, 27 Jan 2010 10:53:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-153162</guid> <description>@David
Just add the configurationdata to the vhost container for your particular domain.</description> <content:encoded><![CDATA[<p>@David<br
/> Just add the configurationdata to the vhost container for your particular domain.</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-152318</link> <dc:creator>David</dc:creator> <pubDate>Wed, 16 Dec 2009 06:08:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-152318</guid> <description>How do I set mod_deflate to work for just ONE domain, not all the domains that my Apache web server works for?</description> <content:encoded><![CDATA[<p>How do I set mod_deflate to work for just ONE domain, not all the domains that my Apache web server works for?</p> ]]></content:encoded> </item> <item><title>By: Amol</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-147096</link> <dc:creator>Amol</dc:creator> <pubDate>Mon, 09 Feb 2009 06:03:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-147096</guid> <description>We have enabled apache compression(mod_deflate) as per the configuration given
----config-----
LoadModule deflate_module modules/mod_deflate.so
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
## Don&#039;t compress images
SetEnvIfNoCase Request_URI \
\.(?:gif&#124;jpe?g&#124;png)$ no-gzip dont-vary
# Make sure proxies don&#039;t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
-----------------
And after this we are facing one strange issue, that if we access the contents from the local intranet, we get the compressed version. However if we access the same contents over the internet(using the same url, our site is static one), we get the un-compressed version, we have identified this by observing the bytes delivered for the request. We also tried enabling/disabling the proxy setting, but no change. Any reason/clue for such kinda situation?
thanks</description> <content:encoded><![CDATA[<p>We have enabled apache compression(mod_deflate) as per the configuration given<br
/> &#8212;-config&#8212;&#8211;<br
/> LoadModule deflate_module modules/mod_deflate.so</p><p># Insert filter<br
/> SetOutputFilter DEFLATE</p><p># Netscape 4.x has some problems&#8230;<br
/> BrowserMatch ^Mozilla/4 gzip-only-text/html</p><p># Netscape 4.06-4.08 have some more problems<br
/> BrowserMatch ^Mozilla/4\.0[678] no-gzip</p><p># MSIE masquerades as Netscape, but it is fine<br
/> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br
/> ## Don&#8217;t compress images<br
/> SetEnvIfNoCase Request_URI \<br
/> \.(?:gif|jpe?g|png)$ no-gzip dont-vary</p><p># Make sure proxies don&#8217;t deliver the wrong content<br
/> Header append Vary User-Agent env=!dont-vary</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>And after this we are facing one strange issue, that if we access the contents from the local intranet, we get the compressed version. However if we access the same contents over the internet(using the same url, our site is static one), we get the un-compressed version, we have identified this by observing the bytes delivered for the request. We also tried enabling/disabling the proxy setting, but no change. Any reason/clue for such kinda situation?</p><p>thanks</p> ]]></content:encoded> </item> <item><title>By: Amol</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-147095</link> <dc:creator>Amol</dc:creator> <pubDate>Mon, 09 Feb 2009 05:57:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-147095</guid> <description>Can we ask apache not to compress the static contents every time and use the compressed version which is would have prepared for the first time access</description> <content:encoded><![CDATA[<p>Can we ask apache not to compress the static contents every time and use the compressed version which is would have prepared for the first time access</p> ]]></content:encoded> </item> <item><title>By: otyek james</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-146972</link> <dc:creator>otyek james</dc:creator> <pubDate>Thu, 29 Jan 2009 10:06:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-146972</guid> <description>thanxs alot, we in africa have issues woth bandwidth, I believe this will help optimize our webserver&#039;s performance.
Good day,
Ronald</description> <content:encoded><![CDATA[<p>thanxs alot, we in africa have issues woth bandwidth, I believe this will help optimize our webserver&#8217;s performance.<br
/> Good day,<br
/> Ronald</p> ]]></content:encoded> </item> <item><title>By: Anton Ongsono</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-146435</link> <dc:creator>Anton Ongsono</dc:creator> <pubDate>Thu, 25 Dec 2008 11:02:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-146435</guid> <description>how to use this in htaccess?</description> <content:encoded><![CDATA[<p>how to use this in htaccess?</p> ]]></content:encoded> </item> <item><title>By: Jiwei Wang</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-145746</link> <dc:creator>Jiwei Wang</dc:creator> <pubDate>Fri, 28 Nov 2008 03:23:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-145746</guid> <description>My previous comment was messed up by the html code.  The bug is &quot;Location&quot; should read &quot;/Location&quot;, replacing &quot; with angle brackets.</description> <content:encoded><![CDATA[<p>My previous comment was messed up by the html code.  The bug is &#8220;Location&#8221; should read &#8220;/Location&#8221;, replacing &#8221; with angle brackets.</p> ]]></content:encoded> </item> <item><title>By: Jiwei Wang</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-145745</link> <dc:creator>Jiwei Wang</dc:creator> <pubDate>Fri, 28 Nov 2008 03:20:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-145745</guid> <description>Great tip. Works like a charm, speeding up my sites a good percentage. One bug in the post:  should read  in two places.</description> <content:encoded><![CDATA[<p>Great tip. Works like a charm, speeding up my sites a good percentage. One bug in the post:  should read  in two places.</p> ]]></content:encoded> </item> <item><title>By: treblam</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-145523</link> <dc:creator>treblam</dc:creator> <pubDate>Sat, 08 Nov 2008 06:18:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-145523</guid> <description>The end tag  should be ,if I use  I would get this error when I restart apache:&quot;The requested operation has failed&quot;</description> <content:encoded><![CDATA[<p>The end tag  should be ,if I use  I would get this error when I restart apache:&#8221;The requested operation has failed&#8221;</p> ]]></content:encoded> </item> <item><title>By: Shivin</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-144652</link> <dc:creator>Shivin</dc:creator> <pubDate>Thu, 14 Aug 2008 09:04:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-144652</guid> <description>Hi,
Will mod_jk and mod_deflate works together?
If yes which versions are good.
Pls mail me the answer shivinvijai@gmail.com
Thanks in advance
Shivin</description> <content:encoded><![CDATA[<p>Hi,</p><p>Will mod_jk and mod_deflate works together?<br
/> If yes which versions are good.<br
/> Pls mail me the answer <a
href="mailto:shivinvijai@gmail.com">shivinvijai@gmail.com</a></p><p>Thanks in advance<br
/> Shivin</p> ]]></content:encoded> </item> <item><title>By: matsu</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-143255</link> <dc:creator>matsu</dc:creator> <pubDate>Sun, 23 Mar 2008 17:10:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-143255</guid> <description>I found spelling mistake.
The end of code snipet,   should be .
thank you for your article. Very useful for real operating server.</description> <content:encoded><![CDATA[<p>I found spelling mistake.</p><p>The end of code snipet,   should be .</p><p>thank you for your article. Very useful for real operating server.</p> ]]></content:encoded> </item> <item><title>By: Jeff Shields</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-142124</link> <dc:creator>Jeff Shields</dc:creator> <pubDate>Tue, 11 Dec 2007 04:08:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-142124</guid> <description>I used Mod_deflate with apache 2.0.54 with .shtml SSI which also have embedded php code. These pages are returned empty to the browser.
Not sure why this is happening. Anyone know about this.</description> <content:encoded><![CDATA[<p>I used Mod_deflate with apache 2.0.54 with .shtml SSI which also have embedded php code. These pages are returned empty to the browser.</p><p>Not sure why this is happening. Anyone know about this.</p> ]]></content:encoded> </item> <item><title>By: Nigel Aves</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-141981</link> <dc:creator>Nigel Aves</dc:creator> <pubDate>Wed, 28 Nov 2007 02:13:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-141981</guid> <description>ah .... this was dropped from my message :)
the final location should be preceded by a back-slash.</description> <content:encoded><![CDATA[<p>ah &#8230;. this was dropped from my message :)</p><p>the final location should be preceded by a back-slash.</p> ]]></content:encoded> </item> <item><title>By: Nigel Aves</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-141980</link> <dc:creator>Nigel Aves</dc:creator> <pubDate>Wed, 28 Nov 2007 02:11:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-141980</guid> <description>Thanks for this incredibly useful page, integrated into Apache with no problems.
One technical question. Does anyone know why &quot;image&quot; files can not be compressed? I run an on-line gallery  so even a few % of compression could be handy.
The final  should be
Log Files ...
Found this on the apache site
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat &#039;&quot;%r&quot; %{outstream}n/%{instream}n (%{ratio}n%%)&#039; deflate
CustomLog logs/deflate_log deflate
solves the question above about &quot;testing&quot;. Seems to work with webalizer as well.
Many Thanks
Nigel.</description> <content:encoded><![CDATA[<p>Thanks for this incredibly useful page, integrated into Apache with no problems.</p><p>One technical question. Does anyone know why &#8220;image&#8221; files can not be compressed? I run an on-line gallery  so even a few % of compression could be handy.</p><p>The final  should be</p><p>Log Files &#8230;</p><p>Found this on the apache site</p><p>DeflateFilterNote Input instream<br
/> DeflateFilterNote Output outstream<br
/> DeflateFilterNote Ratio ratio</p><p>LogFormat &#8216;&#8221;%r&#8221; %{outstream}n/%{instream}n (%{ratio}n%%)&#8217; deflate<br
/> CustomLog logs/deflate_log deflate</p><p>solves the question above about &#8220;testing&#8221;. Seems to work with webalizer as well.</p><p>Many Thanks</p><p>Nigel.</p> ]]></content:encoded> </item> <item><title>By: Farrukh Shahzad</title><link>http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-141093</link> <dc:creator>Farrukh Shahzad</dc:creator> <pubDate>Thu, 13 Sep 2007 09:18:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/speed-up-apache-20-web-access-or-downloads-with-mod_deflate.html#comment-141093</guid> <description>&quot;Hans-Werner&quot;,
what you are saying I don&#039;t agree to that...
To use the gzip compression in PHP/Apache the output buffering is required to be set as &quot;ON&quot;
So whole page (or output buffer gets full) is buffered and compressed and then sent to the client....
also the funny part is that if a client receives a compress page and that page contains more than one gzip compress block then till all the blocks are downloaded at client browser... the output in the browsers will not be displayed...
mean page will show up till all the compressed contents are downloaded in the client side</description> <content:encoded><![CDATA[<p>&#8220;Hans-Werner&#8221;,<br
/> what you are saying I don&#8217;t agree to that&#8230;</p><p>To use the gzip compression in PHP/Apache the output buffering is required to be set as &#8220;ON&#8221;</p><p>So whole page (or output buffer gets full) is buffered and compressed and then sent to the client&#8230;.</p><p>also the funny part is that if a client receives a compress page and that page contains more than one gzip compress block then till all the blocks are downloaded at client browser&#8230; the output in the browsers will not be displayed&#8230;</p><p>mean page will show up till all the compressed contents are downloaded in the client side</p> ]]></content:encoded> </item> </channel> </rss>
