<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post/4282/</link>
<title><![CDATA[discuz!x1.5在nginx下的静态化设置]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 06 May 2011 15:21:36 +0000</pubDate> 
<guid>http://jackxiang.com/post/4282/</guid> 
<description>
<![CDATA[ 
	<textarea name="code" class="html" rows="15" cols="100">
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/topic-(.+)&#92;.html$ $1/portal.php?mod=topic&topic=$2 last;
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/article-([0-9]+)-([0-9]+)&#92;.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/forum-(&#92;w+)-([0-9]+)&#92;.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)&#92;.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/group-([0-9]+)-([0-9]+)&#92;.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/space-(username&#124;uid)-(.+)&#92;.html$ $1/home.php?mod=space&$2=$3 last;
&nbsp;&nbsp;rewrite ^([^&#92;.]*)/([a-z]+)-(.+)&#92;.html$ $1/$2.php?rewrite=$3 last;
&nbsp;&nbsp;if (!-e $request_filename) &#123;
&nbsp;&nbsp; return 404;
&nbsp;&nbsp; &#125;


</textarea><br/>实例如下：<br/>修改/usr/local/webserver/nginx/conf/Nginx.conf<br/>在尾部加上：<br/><textarea name="code" class="html" rows="15" cols="100">
location / &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index index.php index.html index.htm;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/topic-(.+)&#92;.html$ $1/portal.php?mod=topic&topic=$2 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/article-([0-9]+)-([0-9]+)&#92;.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/forum-(&#92;w+)-([0-9]+)&#92;.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)&#92;.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/group-([0-9]+)-([0-9]+)&#92;.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/space-(username&#124;uid)-(.+)&#92;.html$ $1/home.php?mod=space&$2=$3 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^([^&#92;.]*)/([a-z]+)-(.+)&#92;.html$ $1/$2.php?rewrite=$3 last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!-e $request_filename) &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 404;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;

</textarea>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/4282/#blogcomment54221</link>
<title><![CDATA[[评论] discuz!x1.5在nginx下的静态化设置]]></title> 
<author>jackxiang &lt;warsharp@t.sina.com.cn&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 06 May 2011 16:22:03 +0000</pubDate> 
<guid>http://jackxiang.com/post/4282/#blogcomment54221</guid> 
<description>
<![CDATA[ 
	怎么知道fid号？当前版块的地址中<br/>比如：http://bbs.idctuan.cn/forum-2-1.html<br/>forum-后的那个2 就是当前版块fid号
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/4282/#blogcomment59466</link>
<title><![CDATA[[评论] discuz!x1.5在nginx下的静态化设置]]></title> 
<author>handbagsad1 &lt;ad.snail@gmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 29 May 2011 01:13:47 +0000</pubDate> 
<guid>http://jackxiang.com/post/4282/#blogcomment59466</guid> 
<description>
<![CDATA[ 
	Two packages arrived. What could they be? Watch and find out.
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/4282/#blogcomment63365</link>
<title><![CDATA[[评论] discuz!x1.5在nginx下的静态化设置]]></title> 
<author>cheap352 &lt;www.onlineboots-store.com2@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 24 Aug 2011 00:03:04 +0000</pubDate> 
<guid>http://jackxiang.com/post/4282/#blogcomment63365</guid> 
<description>
<![CDATA[ 
	!
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/4282/#blogcomment63377</link>
<title><![CDATA[[评论] discuz!x1.5在nginx下的静态化设置]]></title> 
<author>bokig875 &lt;fsadfasdfasfa@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 20 Nov 2011 06:27:38 +0000</pubDate> 
<guid>http://jackxiang.com/post/4282/#blogcomment63377</guid> 
<description>
<![CDATA[ 
	呵呵 那就好好玩吧~~~~
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/4282/#blogcomment63394</link>
<title><![CDATA[[评论] discuz!x1.5在nginx下的静态化设置]]></title> 
<author>xxyzt780 &lt;frtag9@ganshar.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 22 Dec 2011 11:34:12 +0000</pubDate> 
<guid>http://jackxiang.com/post/4282/#blogcomment63394</guid> 
<description>
<![CDATA[ 
	潜水多年，露个面
]]>
</description>
</item>
</channel>
</rss>