<?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>漂泊的灵魂 &#187; nginx</title>
	<atom:link href="http://www.armysoul.org/archives/tag/nginx/feed" rel="self" type="application/rss+xml" />
	<link>http://www.armysoul.org</link>
	<description>漂泊在尘世的喧嚣中寻求灵魂的永恒！</description>
	<lastBuildDate>Thu, 18 Aug 2011 13:52:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Nginx打开目录浏览功能(autoindex)</title>
		<link>http://www.armysoul.org/archives/264.html</link>
		<comments>http://www.armysoul.org/archives/264.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 11:31:34 +0000</pubDate>
		<dc:creator>Phoebus</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.armysoul.org/?p=264</guid>
		<description><![CDATA[<p>Nginx默认是不允许列出整个目录的。如需此功能，<br />
打开nginx.conf文件，在location server 或 http段中加入<br />
autoindex on;<br />
另外两个参数最好也加上去:</p>
<p>autoindex_exact_size off;<br />
默认为on，显示出文件的确切大小，单位是bytes。<br />
[......]</p><p class='read-more'><a href='http://www.armysoul.org/archives/264.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>Nginx默认是不允许列出整个目录的。如需此功能，<br />
打开nginx.conf文件，在location server 或 http段中加入<br />
autoindex on;<br />
另外两个参数最好也加上去:</p>
<p>autoindex_exact_size off;<br />
默认为on，显示出文件的确切大小，单位是bytes。<br />
改为off后，显示出文件的大概大小，单位是kB或者MB或者GB</p>
<p>autoindex_localtime on;<br />
默认为off，显示的文件时间为GMT时间。<br />
改为on后，显示的文件时间为文件的服务器时间</p>
<p>location /images {<br />
                root   /var/www/nginx-default/ibugaocn;<br />
                autoindex on;<br />
        }</p>
<p>详细参照:http://wiki.nginx.org/NginxChsHttpAutoindexModule</p>
<p>如果想希望目录列表支持header,footer则可以安装三方插件:</p>
<p>http://wiki.nginx.org/NginxNgxFancyIndex</p>
]]></content:encoded>
			<wfw:commentRss>http://www.armysoul.org/archives/264.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>原创：修改Nginx.conf 启用PATH_INFO</title>
		<link>http://www.armysoul.org/archives/143.html</link>
		<comments>http://www.armysoul.org/archives/143.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 16:30:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[magike]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[path_info]]></category>
		<category><![CDATA[typecho]]></category>

		<guid isPermaLink="false">http://www.armysoul.org/index.php/archives/143.html</guid>
		<description><![CDATA[之前安装typecho和magike时，出现跳转异常，最后发现nginx没有配置path_info，现在把方法保存下来。

修改：

location ~ .*\.(php&#124;php5)? $
{
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;[......]<p class='read-more'><a href='http://www.armysoul.org/archives/143.html'></a></p>]]></description>
			<content:encoded><![CDATA[<p>之前安装typecho和magike时，出现跳转异常，最后发现nginx没有配置path_info，现在把方法保存下来。</p>
<p>修改：</p>
<blockquote><p>location ~ .*\.(php|php5)? $<br />
{<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;</p></blockquote>
<p>为：</p>
<blockquote><p>location ~ .*\.(php|php5)?<br />
{<br />
fastcgi_param PATH_INFO $fastcgi_script_name;<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;</p></blockquote>
<p>注意，一定要去掉”location ~ .*\.(php|php5)? $ ”中的$。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.armysoul.org/archives/143.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx下URL Rewrite配置</title>
		<link>http://www.armysoul.org/archives/99.html</link>
		<comments>http://www.armysoul.org/archives/99.html#comments</comments>
		<pubDate>Mon, 06 Jul 2009 16:16:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.armysoul.org/?p=99</guid>
		<description><![CDATA[环境：CentOS5.3+Nginx 0.7，启用伪静态：

编辑/usr/local/nginx/conf/nginx.conf，在server段添加
server
{
listen 80;
server_name xxx.phoebus.cn;
index index.html index.htm index.php;[......]<p class='read-more'><a href='http://www.armysoul.org/archives/99.html'></a></p>]]></description>
			<content:encoded><![CDATA[<p>环境：CentOS5.3+Nginx 0.7，启用伪静态：</p>
<p>编辑/usr/local/nginx/conf/nginx.conf，在server段添加<br />
server<br />
{<br />
listen 80;<br />
server_name xxx.phoebus.cn;<br />
index index.html index.htm index.php;<br />
root /web/www;</p>
<blockquote><p>location / {<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p></blockquote>
<p>location ~ .*\.(php|php5)?$<br />
{<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 />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.armysoul.org/archives/99.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

