<?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/"
	>

<channel>
	<title>Capn3m0 WebSecurity &#187; compressione http</title>
	<atom:link href="http://www.capn3m0.org/tag/compressione-http/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.capn3m0.org</link>
	<description>...hacking, security, wifi and more...</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:58:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Abilitare compressione HTTP ( Mod_deflate )</title>
		<link>http://www.capn3m0.org/abilitare-compressione-http-mod_deflate.html</link>
		<comments>http://www.capn3m0.org/abilitare-compressione-http-mod_deflate.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 09:50:34 +0000</pubDate>
		<dc:creator>capn3m0</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[abilitare gzip]]></category>
		<category><![CDATA[Compressione gzip]]></category>
		<category><![CDATA[compressione http]]></category>
		<category><![CDATA[deflate]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod_deflate]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.capn3m0.org/?p=362</guid>
		<description><![CDATA[Tempo fa avevo già accennato a come poter ottimizzare le performance del proprio sito agendo sul &#8220;php.ini&#8221; per variare alcuni parametri quali il &#8220;memory_limit&#8221; e il &#8220;max_execution_time&#8221;. Quest&#8217;oggi vi illustro come poter attivare e ottimizzare la compressione tramite Mod Deflate di Apache quando attiva nel proprio spazio in Hosting. Attivando tale compressione unita ad apposite [...]]]></description>
			<content:encoded><![CDATA[<p>Tempo fa avevo già accennato a come poter <a href="http://www.capn3m0.org/velocizzare-il-proprio-sito.html" target="_self"><strong>ottimizzare le performance</strong></a> del proprio sito agendo sul &#8220;php.ini&#8221; per variare alcuni parametri quali il &#8220;memory_limit&#8221; e il &#8220;max_execution_time&#8221;.</p>
<p>Quest&#8217;oggi vi illustro come poter <strong>attivare e ottimizzare la compressione tramite <a href="http://httpd.apache.org/docs/2.0/mod/mod_deflate.html" target="_blank">Mod Deflate</a> di Apache quando attiva nel proprio spazio in Hosting.</strong></p>
<p>Attivando tale compressione unita ad apposite modifiche al sito per ottimizzarlo al meglio (attivazione del Minify, attivazione della cache, etc) sono riuscito ad ottenere una <strong>compressione da 266Kb originari della mia Home Page a 16 K </strong>come dimostra l&#8217;immagine sottostante realizzata utilizzando il plugin &#8220;<strong>YSlow</strong>&#8220;.</p>
<p><a href="http://www.capn3m0.org/wp-content/uploads/2009/12/105.jpg" rel="lightbox[362]" title="Compressione con YSlow"><img class="aligncenter size-medium wp-image-363" title="Compressione con YSlow" src="http://www.capn3m0.org/wp-content/uploads/2009/12/105-300x118.jpg" alt="Abilitare compressione HTTP ( Mod deflate )" width="300" height="118" /></a></p>
<p><span id="more-362"></span>Grazie a ciò e alle modifiche apportate al sito attualmente &#8220;<strong>capn3m0.org</strong>&#8221; è passato da &#8220;Grade F&#8221; a &#8220;Grade C&#8221; di Yahoo riuscendo a ottimizzare ed ottenere A e B in tutte le categorie dove è possibile intervenire.</p>
<p style="text-align: center;"><a href="http://www.capn3m0.org/wp-content/uploads/2009/12/106.jpg" rel="lightbox[362]" title="Compressione YSlow - capn3m0.org"><img class="size-medium wp-image-364 aligncenter" title="Compressione YSlow - capn3m0.org" src="http://www.capn3m0.org/wp-content/uploads/2009/12/106-300x209.jpg" alt="Abilitare compressione HTTP ( Mod deflate )" width="300" height="209" /></a></p>
<p style="text-align: left;">Di seguito vi incollo il link al file &#8220;.htaccess&#8221; da utilizzare per <strong>abilitare la compressione HTTP tramite Deflate</strong>.</p>
<p style="text-align: left;"><a href="http://www.capn3m0.org/wp-content/uploads/2009/12/CompressioneGzip_capn3m0_org.zip"><strong>Download .htaccess &#8211; Compressione HTTP ON</strong></a></p>
<p style="text-align: left;">Qui invece, potete leggere direttamente il codice da utilizzare:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">SetOutputFilter DEFLATE
AddOutputFilter DEFLATE text<span style="color: #339933;">/</span>html text<span style="color: #339933;">/</span>plain text<span style="color: #339933;">/</span>xml text<span style="color: #339933;">/</span>css application<span style="color: #339933;">/</span>javascript application<span style="color: #339933;">/</span>x<span style="color: #339933;">-</span>javascript application<span style="color: #339933;">/</span>x<span style="color: #339933;">-</span>httpd<span style="color: #339933;">-</span>php application<span style="color: #339933;">/</span>rss<span style="color: #339933;">+</span>xml application<span style="color: #339933;">/</span>atom_xml text<span style="color: #339933;">/</span>javascript
<span style="color: #666666; font-style: italic;"># Netscape 4.x has some problems...
</span>BrowserMatch ^Mozilla<span style="color: #339933;">/</span><span style="color: #cc66cc;">4</span> gzip<span style="color: #339933;">-</span>only<span style="color: #339933;">-</span>text<span style="color: #339933;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># Netscape 4.06-4.08 have some more problems
</span>BrowserMatch ^Mozilla<span style="color: #339933;">/</span><span style="color: #cc66cc;">4</span>\<span style="color:#800080;">.0</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">678</span><span style="color: #009900;">&#93;</span> no<span style="color: #339933;">-</span>gzip
&nbsp;
<span style="color: #666666; font-style: italic;"># MSIE masquerades as Netscape, but it is fine
</span> BrowserMatch \bMSIE <span style="color: #339933;">!</span>no<span style="color: #339933;">-</span>gzip <span style="color: #339933;">!</span>gzip<span style="color: #339933;">-</span>only<span style="color: #339933;">-</span>text<span style="color: #339933;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
</span><span style="color: #666666; font-style: italic;"># the above regex won't work. You can use the following
</span><span style="color: #666666; font-style: italic;"># workaround to get the desired effect:
</span>BrowserMatch \bMSI<span style="color: #009900;">&#91;</span>E<span style="color: #009900;">&#93;</span> <span style="color: #339933;">!</span>no<span style="color: #339933;">-</span>gzip <span style="color: #339933;">!</span>gzip<span style="color: #339933;">-</span>only<span style="color: #339933;">-</span>text<span style="color: #339933;">/</span>html
&nbsp;
<span style="color: #666666; font-style: italic;"># Don't compress images
</span>SetEnvIfNoCase Request_URI \
\<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span>?<span style="color: #339933;">:</span>gif<span style="color: #339933;">|</span>jpe?g<span style="color: #339933;">|</span>png<span style="color: #009900;">&#41;</span>$ no<span style="color: #339933;">-</span>gzip dont<span style="color: #339933;">-</span>vary</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.capn3m0.org/abilitare-compressione-http-mod_deflate.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.capn3m0.org @ 2012-02-09 06:16:53 by W3 Total Cache -->
