<?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>Flib &#187; nginx</title>
	<atom:link href="http://blog.flib.me/tag/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flib.me</link>
	<description>flex&#039;s library</description>
	<lastBuildDate>Thu, 15 Dec 2011 11:05:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>nginx的log</title>
		<link>http://blog.flib.me/2010/01/29/nginx%e7%9a%84log/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nginx%25e7%259a%2584log</link>
		<comments>http://blog.flib.me/2010/01/29/nginx%e7%9a%84log/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 09:03:39 +0000</pubDate>
		<dc:creator>flex</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[运维]]></category>
		<category><![CDATA[access_log]]></category>
		<category><![CDATA[error_log]]></category>
		<category><![CDATA[error_page]]></category>

		<guid isPermaLink="false">http://blog.flib.me/?p=38161</guid>
		<description><![CDATA[access_log的最小作用域是location，关闭方式是：access_log off; error_log的最小作用域是http，关闭方式是：error_log /dev/null; 如果一个请求是404之类的，则access_log中记录404，error_log同时会记录open filename failed等错误，如果不需要，可以改变http域error_log的记录等级，也可以直接关闭（还有log_not_found选项可以关闭记录open filename failed错误）。]]></description>
			<content:encoded><![CDATA[<p>access_log的最小作用域是location，关闭方式是：access_log off;</p>
<p>error_log的最小作用域是http，关闭方式是：error_log /dev/null;</p>
<p>如果一个请求是404之类的，则access_log中记录404，error_log同时会记录open filename failed等错误，如果不需要，可以改变http域error_log的记录等级，也可以直接关闭（还有log_not_found选项可以关闭记录open filename failed错误）。<span style="text-decoration: line-through;"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flib.me/2010/01/29/nginx%e7%9a%84log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx的rewrite</title>
		<link>http://blog.flib.me/2010/01/28/nginx%e7%9a%84rewrite/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nginx%25e7%259a%2584rewrite</link>
		<comments>http://blog.flib.me/2010/01/28/nginx%e7%9a%84rewrite/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 15:50:36 +0000</pubDate>
		<dc:creator>flex</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[运维]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://blog.flib.me/?p=38148</guid>
		<description><![CDATA[设置nginx的rewrite如果替换项是以http://开头，则起的是redirect的作用，即使最后的参数是last不是redirect，例如： rewrite ^(.*)$ http://aaa.bbb.com/ccc$1 last; 浏览器端会得到302。 nginx的文档里提到： redirect &#8211; returns temporary redirect with code 302; it is used if the substituting line begins with http:// 另外，rewrite后的host的使用顺序如下： 当请求的http头里的host匹配sever_name里的任一host时，使用此host 若不匹配，或者为空，使用server_name的第一个host 若没有设置server_name，则使用本机的hostname 若要一直使用http头里的host，则将server_name设置为：servername _ *;（下划线不能少，因为 * 不能做为sever_name第一项的开头）]]></description>
			<content:encoded><![CDATA[<p>设置nginx的rewrite如果替换项是以http://开头，则起的是redirect的作用，即使最后的参数是last不是redirect，例如：</p>
<p>rewrite ^(.*)$ http://aaa.bbb.com/ccc$1 last;</p>
<p>浏览器端会得到302。</p>
<p>nginx的文档里提到：</p>
<blockquote><p>
redirect &#8211; returns temporary redirect with code 302; it is used if the substituting line begins with http://</p></blockquote>
<p>另外，rewrite后的host的使用顺序如下：</p>
<ol>
<li>当请求的http头里的host匹配sever_name里的任一host时，使用此host</li>
<li>若不匹配，或者为空，使用server_name的第一个host</li>
<li>若没有设置server_name，则使用本机的hostname</li>
<li>若要一直使用http头里的host，则将server_name设置为：servername _ *;（下划线不能少，因为 * 不能做为sever_name第一项的开头）</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.flib.me/2010/01/28/nginx%e7%9a%84rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx fancyindex插件严重影响效率</title>
		<link>http://blog.flib.me/2010/01/05/nginx-fancyindex%e6%8f%92%e4%bb%b6%e4%b8%a5%e9%87%8d%e5%bd%b1%e5%93%8d%e6%95%88%e7%8e%87/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nginx-fancyindex%25e6%258f%2592%25e4%25bb%25b6%25e4%25b8%25a5%25e9%2587%258d%25e5%25bd%25b1%25e5%2593%258d%25e6%2595%2588%25e7%258e%2587</link>
		<comments>http://blog.flib.me/2010/01/05/nginx-fancyindex%e6%8f%92%e4%bb%b6%e4%b8%a5%e9%87%8d%e5%bd%b1%e5%93%8d%e6%95%88%e7%8e%87/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 14:15:14 +0000</pubDate>
		<dc:creator>flex</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[运维]]></category>
		<category><![CDATA[fancyindex]]></category>

		<guid isPermaLink="false">http://blog.flib.me/?p=38136</guid>
		<description><![CDATA[补记： nginx的fancyindex插件能提供定制性更好的index页面（插件许久没有更新，有一个小的bug，含有冒号的url不能正确生成，稍稍改下代码就行了）。不过经过一段时间高负载的使用后，发现页面载入延迟比较高，使用ab局域网压力测试的结果（nginx 0.7.64）表明fancyindex的效率只有原生autoindex的37.5%。]]></description>
			<content:encoded><![CDATA[<p>补记：</p>
<p>nginx的fancyindex插件能提供定制性更好的index页面（插件许久没有更新，有一个小的bug，含有冒号的url不能正确生成，稍稍改下代码就行了）。不过经过一段时间高负载的使用后，发现页面载入延迟比较高，使用ab局域网压力测试的结果（nginx 0.7.64）表明fancyindex的效率只有原生autoindex的37.5%。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flib.me/2010/01/05/nginx-fancyindex%e6%8f%92%e4%bb%b6%e4%b8%a5%e9%87%8d%e5%bd%b1%e5%93%8d%e6%95%88%e7%8e%87/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

