<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[振华博客]]></title> 
    <link>http://www.zhenhua.org/</link> 
    <description><![CDATA[振华博客,振华's blog]]></description> 
    <language>UTF-8</language> 
    <copyright><![CDATA[Copyright 2010, 振华博客]]></copyright> 
    <webMaster><![CDATA[zenhua@gmail.com (振华)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Tue, 07 Sep 2010 20:20:25 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[Nginx配置文件说明]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=690]]></link> 
      <category><![CDATA[Nginx]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Sat, 31 Oct 2009 00:01:01 +0800</pubDate> 
      <description><![CDATA[<b>－－－－－－－－－－－－－－nginx 配置 gzip压缩</b><br /> <br />一般情况下压缩后的html、css、js、php、jhtml等文件，大小能降至原来的25%，也就是说，原本一个100k的html，压缩后只剩下25k。这无疑能节省很多带宽，也能降低服务器的负载。<br />在nginx中配置gzip比较简单<br /><br />一般情况下只要在nginx.conf的http段中加入下面几行配置即可<br /><br />引用<br />   gzip  on;<br />   gzip_min_length  1000;<br />   gzip_buffers     4 8k;<br />   gzip_types       text/plain application/x-javascript text/css text/html application/xml;<br /><br />重启nginx<br />可以通过网页gzip检测工具来检测网页是否启用了gzip<br /><a href="http://gzip.zzbaike.com/" title="http://gzip.zzbaike.com/" target="_blank">http://gzip.zzbaike.com/</a><br /> <br /> <br /> <br /><b>---------------重定向nginx错误页面的方法</b><br />error_page 404  /404.html;<br />这个404.html保证在]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=690]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
