<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>World of *Nix &#187; server</title>
	<atom:link href="http://www.lavluda.com/category/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lavluda.com</link>
	<description>by S. M. Ibrahim (lavluda)</description>
	<lastBuildDate>Sun, 16 May 2010 16:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>Copyright &#xA9; 2010 World of *Nix </copyright>
	<managingEditor>lavluda@yahoo.com</managingEditor>
	<webMaster>lavluda@yahoo.com</webMaster>
	<category>posts</category>
	<image>
		<url>http://www.lavluda.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>World of *Nix &#187; server</title>
		<link>http://www.lavluda.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>by S. M. Ibrahim (lavluda)</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author></itunes:author>
	<itunes:owner>
		<itunes:name></itunes:name>
		<itunes:email>lavluda@yahoo.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.lavluda.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Website optimization 02: enable deflate /output compression (debian/ubuntu)</title>
		<link>http://www.lavluda.com/2008/11/14/website-optimization-02-enable-deflate-output-compression-debianubuntu/</link>
		<comments>http://www.lavluda.com/2008/11/14/website-optimization-02-enable-deflate-output-compression-debianubuntu/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 09:37:37 +0000</pubDate>
		<dc:creator>lavluda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Helps]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.lavluda.com/?p=244</guid>
		<description><![CDATA[On the first post of this series we learned how to disable etags. in this post we will learn how to enable output compression. Before enable this, let me introduce what deflate do. deflate is apache module, that main task is to compress all the output before serving or sending to client. Nowadays most of [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>On the first post of this series we learned how to disable etags. in this post we will learn how to enable output compression.</p>
<p>Before enable this, let me introduce what deflate do. deflate is apache module, that main task is to compress all the output before serving or sending to client.</p>
<p>Nowadays most of the browser are enough expert to handle this. Here main technique  is , apache will send the output in compressed format, after receiving this output your browser will uncompress it and render the formated output.</p>
<p>This tricks will really improve your site performance, because user will get your site with less time and bandwidth.</p>
<p>Let me give you an example: let&#8217;s think if you are using jquery javascript library that size is 94 Kilo bytes, but if you enable the deflate with default configuration, it will be only 14 Kilo bytes. unbelievable right ? believe me, it&#8217;s true. And we are using this on our most popular product http://www.somewhereinblog.net .</p>
<p>OK, now i am showing how you will do this:</p>
<p>first of all you need to enable deflate module. You know i am debian fan, so i am giving commands for debian linux, other linux/unix commands will almost same. as ubuntu is comes from debian, these commands will also work for ubuntu</p>
<p>Open a new terminal and give this command.<br />
sudo a2enmod deflate</p>
<blockquote><p>it will enable deflate. Wait, you are not finish yet. little work left.<br />
create new file called deflate.conf in your apache conf.d folder. and paste the following code:<br />
<code>&lt;Location /&gt;</code></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><code>&lt;/Location&gt;</code></p>
<p>save the file, and restart apache.</p></blockquote>
<p>sudo /etc/init.d/apache2 restart</p>
<p>that&#8217;s all. now you can see the different.</p>
<p>**if you have not enabled header module of apache, please remove the line &#8220;Header append Vary User-Agent env=!dont-vary&#8221; from deflate.conf .</p>
<p>For more customization or option of deflate, please visit http://httpd.apache.org/docs/2.2/mod/mod_deflate.html</p>
number of view: 1789<img src="http://www.lavluda.com/?ak_action=api_record_view&id=244&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lavluda.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lavluda.com/2008/11/14/website-optimization-02-enable-deflate-output-compression-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.482 seconds -->
