<?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>Mingshi &#187; lighttpd</title>
	<atom:link href="http://www.mingshi.info/tag/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mingshi.info</link>
	<description>miaomiao</description>
	<lastBuildDate>Fri, 18 Jun 2010 13:49:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Zenphoto在lighttpd里的rewrite规则</title>
		<link>http://www.mingshi.info/zenphotolighttpd-rewrite/</link>
		<comments>http://www.mingshi.info/zenphotolighttpd-rewrite/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 08:05:23 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
				<category><![CDATA[网站技术]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.mingshi.info/?p=97</guid>
		<description><![CDATA[$HTTP["host"] =~ &#8220;your domains&#8221; { var.zendir = &#8220;/&#8221; url.rewrite-once = ( &#8220;^&#8221;+zendir+&#8221;admin/?$&#8221; =&#62; &#8220;$0&#8243;, &#8220;^(&#8220;+zendir+&#8221;(albums&#124;cache&#124;themes&#124;zp-core).*)$&#8221; =&#62; &#8220;$1&#8243;, &#8220;^(&#8220;+zendir+&#8221;\?.*)&#8221; =&#62; &#8220;$1&#8243;, &#8220;^(&#8220;+zendir+&#8221;[a-z]+.php(\?.*)?)$&#8221; =&#62; &#8220;$1&#8243;, &#8220;^&#8221;+zendir+&#8221;page/([0-9]+)/?$&#8221; =&#62; zendir+&#8221;index.php?page=$1&#8243;, &#8220;^&#8221;+zendir+&#8221;page/([A-Z]a-z0-9\-_]+)/?$&#8221; =&#62; zendir+&#8221;index.php?p=$1&#8243;, &#8220;^&#8221;+zendir+&#8221;(.*)/page/([0-9]+/)?$&#8221; =&#62; zendir+&#8221;index.php?album=$1&#38;page=$2&#8243;, &#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/([A-Za-z0-9\-_]+)/?$&#8221; =&#62; zendir+&#8221;index.php?p=$1&#38;words=$2&#8243;, &#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/([A-Za-z0-9\-_]+)/([0-9]+)/?$&#8221; =&#62; zendir+&#8221;index.php?p=$1&#38;words=$2&#38;page=$3&#8243;, &#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/archive/([A-Za-z0-9\-_]+)/?$&#8221; =&#62; zendir+&#8221;index.php?p=$1&#38;date=$2&#8243;, &#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/archive/([A-Za-z0-9\-_]+)/([0-9]+)/?$&#8221; =&#62; zendir+&#8221;index.php?p=$1&#38;date=$2&#38;page=$3&#8243;, &#8220;^&#8221;+zendir+&#8221;(.*)/image/(thumb&#124;[0-9]{1,4})/([^/\\]+)$&#8221; =&#62; zendir+&#8221;zp-core/i.php?a=$1&#38;i=$3&#38;s=$2&#8243;, &#8220;^&#8221;+zendir+&#8221;(.*)/image/([^/\\]+)$&#8221; =&#62; zendir+&#8221;zp-core/i.php?a=$1&#38;i=$2&#8243;, &#8220;^&#8221;+zendir+&#8221;(.*)/?$&#8221; =&#62; zendir+&#8221;index.php?album=$1&#8243;, ) } [...]]]></description>
			<content:encoded><![CDATA[<p>$HTTP["host"] =~ &#8220;your domains&#8221; {<br />
var.zendir = &#8220;/&#8221;<br />
url.rewrite-once = (<br />
&#8220;^&#8221;+zendir+&#8221;admin/?$&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^(&#8220;+zendir+&#8221;(albums|cache|themes|zp-core).*)$&#8221; =&gt; &#8220;$1&#8243;,<br />
&#8220;^(&#8220;+zendir+&#8221;\?.*)&#8221; =&gt; &#8220;$1&#8243;,<br />
&#8220;^(&#8220;+zendir+&#8221;[a-z]+.php(\?.*)?)$&#8221; =&gt; &#8220;$1&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;page/([0-9]+)/?$&#8221; =&gt; zendir+&#8221;index.php?page=$1&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;page/([A-Z]a-z0-9\-_]+)/?$&#8221; =&gt; zendir+&#8221;index.php?p=$1&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;(.*)/page/([0-9]+/)?$&#8221; =&gt; zendir+&#8221;index.php?album=$1&amp;page=$2&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/([A-Za-z0-9\-_]+)/?$&#8221; =&gt; zendir+&#8221;index.php?p=$1&amp;words=$2&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/([A-Za-z0-9\-_]+)/([0-9]+)/?$&#8221; =&gt; zendir+&#8221;index.php?p=$1&amp;words=$2&amp;page=$3&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/archive/([A-Za-z0-9\-_]+)/?$&#8221; =&gt; zendir+&#8221;index.php?p=$1&amp;date=$2&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;page/([A-Za-z0-9\-_]+)/archive/([A-Za-z0-9\-_]+)/([0-9]+)/?$&#8221; =&gt; zendir+&#8221;index.php?p=$1&amp;date=$2&amp;page=$3&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;(.*)/image/(thumb|[0-9]{1,4})/([^/\\]+)$&#8221; =&gt; zendir+&#8221;zp-core/i.php?a=$1&amp;i=$3&amp;s=$2&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;(.*)/image/([^/\\]+)$&#8221; =&gt; zendir+&#8221;zp-core/i.php?a=$1&amp;i=$2&#8243;,<br />
&#8220;^&#8221;+zendir+&#8221;(.*)/?$&#8221; =&gt; zendir+&#8221;index.php?album=$1&#8243;,<br />
)<br />
}</p>
<p>dir同样为根目录。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mingshi.info/zenphotolighttpd-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress在lighttpd里的rewrite规则</title>
		<link>http://www.mingshi.info/wordpress%e5%9c%a8lighttpd%e9%87%8c%e7%9a%84rewrite%e8%a7%84%e5%88%99/</link>
		<comments>http://www.mingshi.info/wordpress%e5%9c%a8lighttpd%e9%87%8c%e7%9a%84rewrite%e8%a7%84%e5%88%99/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:51:11 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
				<category><![CDATA[网站技术]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mingshi.info/?p=95</guid>
		<description><![CDATA[url.rewrite = ( "^/?$" =&#62; "/index.php", "^/(?.*)$" =&#62; "/index.php$1", "^/(wp-.+)$" =&#62; "$0", "^/([^.]+)/?$" =&#62; "/index.php?$1", ) 另外一个写法 $HTTP["host"] =~ “mingshi\.info” { var.wpdir = “/” url.rewrite-once = ( “^” + wpdir + “(wp-.+).*/?” => “$0″, “^” + wpdir + “(sitemap.xml)” => “$0″, “^” + wpdir + “(xmlrpc.php)” => “$0″, “^” + wpdir + “keyword/([A-Za-z_0-9-])/?$” => wpdir [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
url.rewrite = (<br />
"^/?$" =&gt; "/index.php",<br />
"^/(?.*)$" =&gt; "/index.php$1",<br />
"^/(wp-.+)$" =&gt; "$0",<br />
"^/([^.]+)/?$" =&gt; "/index.php?$1",<br />
)<br />
</code><br />
另外一个写法<br />
<code><br />
$HTTP["host"] =~ “mingshi\.info” {<br />
var.wpdir = “/”<br />
url.rewrite-once = (<br />
“^” + wpdir + “(wp-.+).*/?” => “$0″,<br />
“^” + wpdir + “(sitemap.xml)” => “$0″,<br />
“^” + wpdir + “(xmlrpc.php)” => “$0″,<br />
“^” + wpdir + “keyword/([A-Za-z_0-9-])/?$” => wpdir + “index.php?keyword=$1″,<br />
“^” + wpdir + “(.+)/?$” => wpdir + “index.php/$1″<br />
)}<br />
</code><br />
wordpress安装在根目录。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mingshi.info/wordpress%e5%9c%a8lighttpd%e9%87%8c%e7%9a%84rewrite%e8%a7%84%e5%88%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz在lighttpd里的rewrite规则</title>
		<link>http://www.mingshi.info/discuz%e5%9c%a8lighttpd%e9%87%8c%e7%9a%84rewrite%e8%a7%84%e5%88%99/</link>
		<comments>http://www.mingshi.info/discuz%e5%9c%a8lighttpd%e9%87%8c%e7%9a%84rewrite%e8%a7%84%e5%88%99/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:50:04 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
				<category><![CDATA[网站技术]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.mingshi.info/?p=93</guid>
		<description><![CDATA[url.rewrite-once = ( "^(.*)/bbs/archiver/((fid&#124;tid)-[w-]+.html)$" => "$1/bbs/archiver/index.php?$2", "^(.*)/bbs/forum-([0-9]+)-([0-9]+).html$" => "$1/bbs/forumdisplay.php?fid=$2&#038;page=$3", "^(.*)/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+).html$" => "$1/bbs/viewthread.php?tid=$2&#038;extra=page%3D$4&#038;page=$3", "^(.*)/bbs/space-(username&#124;uid)-(.+).html$" => "$1/bbs/space.php?$2=$3", "^(.*)/bbs/tag-(.+).html$" => "$1/bbs/tag.php?name=$2" ) 这里我discuz是安装在bbs目录，安装在别的目录或者根目录的时候，相应修改就可以了。]]></description>
			<content:encoded><![CDATA[<p><code><br />
url.rewrite-once = (<br />
"^(.*)/bbs/archiver/((fid|tid)-[w-]+.html)$" => "$1/bbs/archiver/index.php?$2",<br />
"^(.*)/bbs/forum-([0-9]+)-([0-9]+).html$" => "$1/bbs/forumdisplay.php?fid=$2&#038;page=$3",<br />
"^(.*)/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+).html$" => "$1/bbs/viewthread.php?tid=$2&#038;extra=page%3D$4&#038;page=$3",<br />
"^(.*)/bbs/space-(username|uid)-(.+).html$" => "$1/bbs/space.php?$2=$3",<br />
"^(.*)/bbs/tag-(.+).html$" => "$1/bbs/tag.php?name=$2"<br />
)<br />
</code></p>
<p>这里我discuz是安装在bbs目录，安装在别的目录或者根目录的时候，相应修改就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mingshi.info/discuz%e5%9c%a8lighttpd%e9%87%8c%e7%9a%84rewrite%e8%a7%84%e5%88%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
