<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>《Nginx的Rewrite配置》的评论</title>
	<atom:link href="http://blog.licess.org/nginx_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.licess.org/nginx_rewrite/</link>
	<description>关注VPS Linux Nginx MySQL PHP WEB开发 系统管理 服务器架构 Debian CentOS</description>
	<lastBuildDate>Thu, 12 Jan 2012 08:00:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：Eirc</title>
		<link>http://blog.licess.org/nginx_rewrite/comment-page-1/#comment-4355</link>
		<dc:creator>Eirc</dc:creator>
		<pubDate>Sat, 17 Oct 2009 17:27:46 +0000</pubDate>
		<guid isPermaLink="false">/articles/195#comment-4355</guid>
		<description>下面的Rewrite中百分号前面多了个转移字符“”，这在Apache中是需要的，而在Nginx中则是不需要的。
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ /viewthread.php?tid=$1&amp;extra=page%3D$3&amp;page=$2 last;
正确的应该是
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ /viewthread.php?tid=$1&amp;extra=page%3D$3&amp;page=$2 last;

上面兩句一模一樣啊?</description>
		<content:encoded><![CDATA[<p>下面的Rewrite中百分号前面多了个转移字符“”，这在Apache中是需要的，而在Nginx中则是不需要的。<br />
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ /viewthread.php?tid=$1&amp;extra=page%3D$3&amp;page=$2 last;<br />
正确的应该是<br />
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ /viewthread.php?tid=$1&amp;extra=page%3D$3&amp;page=$2 last;</p>
<p>上面兩句一模一樣啊?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：自动将Apache Rewrite伪静态规则转换为Nginx Rewrite - Licess's Blog</title>
		<link>http://blog.licess.org/nginx_rewrite/comment-page-1/#comment-4338</link>
		<dc:creator>自动将Apache Rewrite伪静态规则转换为Nginx Rewrite - Licess's Blog</dc:creator>
		<pubDate>Wed, 14 Oct 2009 03:39:54 +0000</pubDate>
		<guid isPermaLink="false">/articles/195#comment-4338</guid>
		<description>[...] 以前介绍过Nginx的Rewrite配置这篇文章，今天无意间发现了，这个自动转换程序。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 以前介绍过Nginx的Rewrite配置这篇文章，今天无意间发现了，这个自动转换程序。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：licess</title>
		<link>http://blog.licess.org/nginx_rewrite/comment-page-1/#comment-3676</link>
		<dc:creator>licess</dc:creator>
		<pubDate>Fri, 15 May 2009 15:44:25 +0000</pubDate>
		<guid isPermaLink="false">/articles/195#comment-3676</guid>
		<description>@linux, rewrite ^/test-([0-9]+).html$ /test.php?id=$1 last;</description>
		<content:encoded><![CDATA[<p>@linux, rewrite ^/test-([0-9]+).html$ /test.php?id=$1 last;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：linux</title>
		<link>http://blog.licess.org/nginx_rewrite/comment-page-1/#comment-3675</link>
		<dc:creator>linux</dc:creator>
		<pubDate>Fri, 15 May 2009 10:43:43 +0000</pubDate>
		<guid isPermaLink="false">/articles/195#comment-3675</guid>
		<description>server
        {
                listen       80;
                server_name www.xiaoyuan.com;

                location /{
                index index.html index.htm index.php;
                root  /web/www;

                rewrite &quot;^/test-([0-9]+)-([0-9]+).html$&quot; /test.php?id=$1&amp;page=$2
 last;
                }
                #limit_conn   crawler  20;

                #location /status {
                #stub_status    on;
                #access_log     off;
                #}

                location ~ \.php$
                        {
                                include fastcgi_params;
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                #fastcgi_pass  127.0.0.1:9000;
                                fastcgi_index index.php;
                                include fcgi.conf;
                                fastcgi_param SCRIPT_FILENAME /web/www$fastcgi_s
cript_name;
                        }

看看我的配置,我想实现test.php?id=1 用test-1.html来显示，老是不成功呀</description>
		<content:encoded><![CDATA[<p>server<br />
        {<br />
                listen       80;<br />
                server_name <a href="http://www.xiaoyuan.com" rel="nofollow">http://www.xiaoyuan.com</a>;</p>
<p>                location /{<br />
                index index.html index.htm index.php;<br />
                root  /web/www;</p>
<p>                rewrite "^/test-([0-9]+)-([0-9]+).html$" /test.php?id=$1&amp;page=$2<br />
 last;<br />
                }<br />
                #limit_conn   crawler  20;</p>
<p>                #location /status {<br />
                #stub_status    on;<br />
                #access_log     off;<br />
                #}</p>
<p>                location ~ \.php$<br />
                        {<br />
                                include fastcgi_params;<br />
                                fastcgi_pass  unix:/tmp/php-cgi.sock;<br />
                                #fastcgi_pass  127.0.0.1:9000;<br />
                                fastcgi_index index.php;<br />
                                include fcgi.conf;<br />
                                fastcgi_param SCRIPT_FILENAME /web/www$fastcgi_s<br />
cript_name;<br />
                        }</p>
<p>看看我的配置,我想实现test.php?id=1 用test-1.html来显示，老是不成功呀</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：licess</title>
		<link>http://blog.licess.org/nginx_rewrite/comment-page-1/#comment-203</link>
		<dc:creator>licess</dc:creator>
		<pubDate>Sat, 28 Feb 2009 06:37:44 +0000</pubDate>
		<guid isPermaLink="false">/articles/195#comment-203</guid>
		<description>恩</description>
		<content:encoded><![CDATA[<p>恩</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：qingjiao</title>
		<link>http://blog.licess.org/nginx_rewrite/comment-page-1/#comment-202</link>
		<dc:creator>qingjiao</dc:creator>
		<pubDate>Sat, 28 Feb 2009 03:17:33 +0000</pubDate>
		<guid isPermaLink="false">/articles/195#comment-202</guid>
		<description>你好！我如果要对具体的某几个文件缓存该如何写呢？
这样写可以吗？
location ~ .(a.txt&#124;b.txt&#124;c.html&#124;d.jpg)$
  {
    expires      30d;
  }  

希望能给予答复，谢谢！</description>
		<content:encoded><![CDATA[<p>你好！我如果要对具体的某几个文件缓存该如何写呢？<br />
这样写可以吗？<br />
location ~ .(a.txt|b.txt|c.html|d.jpg)$<br />
  {<br />
    expires      30d;<br />
  }  </p>
<p>希望能给予答复，谢谢！</p>
]]></content:encoded>
	</item>
</channel>
</rss>

