<?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>深度VPS &#187; 列表</title>
	<atom:link href="http://www.deepvps.com/tag/%E5%88%97%E8%A1%A8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.deepvps.com</link>
	<description>专注VPS技术，关注前端技术</description>
	<lastBuildDate>Sat, 04 Feb 2023 14:00:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何开启Nginx的目录文件列表功能</title>
		<link>http://www.deepvps.com/how-to-open-nginx-directory-file-list-functionality.html</link>
		<comments>http://www.deepvps.com/how-to-open-nginx-directory-file-list-functionality.html#comments</comments>
		<pubDate>Fri, 25 Feb 2011 12:44:08 +0000</pubDate>
		<dc:creator>deepvps</dc:creator>
				<category><![CDATA[VPS管理维护]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[列表]]></category>
		<category><![CDATA[开启]]></category>
		<category><![CDATA[目录]]></category>

		<guid isPermaLink="false">http://www.deepvps.com/?p=733</guid>
		<description><![CDATA[Nginx默认是不允许列出整个目录的。如何开启Nginx的目录文件列表功能？
打开nginx.conf文件，在location server 或 http段中加入
autoindex on;
另外两个参数最好也加上去：
autoindex_exact_size off;
默认为on，显示出文件的确切大小，单位是bytes。
改为off后，显示出文件的大概大小，单位是kB或者MB或者GB
autoindex_localtime on;
默认为off，显示的文件时间为GMT时间。
改为on后，显示的文件时间为文件的服务器时间
配置Nginx目录列表的方法详细参照：http://wiki.nginx.org/NginxChsHttpAutoindexModule
如果想希望目录列表支持header,footer则可以安装三方插件：http://wiki.nginx.org/NginxNgxFancyIndex
配置Nginx目录列表的效果如下：
Index of /

../
aspnet/                                            24-Jan-2010 21:45  [...]]]></description>
			<content:encoded><![CDATA[<p>Nginx默认是不允许列出整个目录的。<strong>如何开启Nginx的目录文件列表功能？</strong></p>
<p>打开nginx.conf文件，在location server 或 http段中加入</p>
<blockquote><p>autoindex on;</p></blockquote>
<p>另外两个参数最好也加上去：</p>
<blockquote><p>autoindex_exact_size off;</p></blockquote>
<p>默认为on，显示出文件的确切大小，单位是bytes。<br />
改为off后，显示出文件的大概大小，单位是kB或者MB或者GB</p>
<blockquote><p>autoindex_localtime on;</p></blockquote>
<p>默认为off，显示的文件时间为GMT时间。<br />
改为on后，显示的文件时间为文件的服务器时间</p>
<p><span id="more-733"></span>配置Nginx目录列表的方法详细参照：http://wiki.nginx.org/NginxChsHttpAutoindexModule</p>
<p>如果想希望目录列表支持header,footer则可以安装三方插件：http://wiki.nginx.org/NginxNgxFancyIndex</p>
<p>配置Nginx目录列表的效果如下：</p>
<pre>Index of /

../
aspnet/                                            24-Jan-2010 21:45       -
mui/                                               03-Jun-2010 11:42       -
mysql/                                             24-Jan-2010 21:42       -
others/                                            23-Apr-2010 10:35       -
php/                                               24-Jan-2010 21:47       -
sql/                                               31-Mar-2010 15:14       -
zend/                                              16-Jan-2010 15:21       -
deepvps.com                                        09-Jan-2010 11:35     130
du.txt                                             25-Mar-2010 21:36      10
dumeter.zip                                        22-Jan-2010 12:05      2M
favicon.ico                                        26-Aug-2009 04:36     318
ftp.exe                                            05-Jan-2010 06:31      4M
index2.html                                        24-Jan-2010 21:53      24
lxadmin.tar.gz                                     04-Jan-2010 19:27    820K
servu.rar                                          08-Jan-2010 15:01     10M
servu6.rar                                         16-Jan-2010 12:17      5M
teamviewer.zip                                     15-Jan-2010 10:50      3M
winrar.exe                                         09-Dec-2009 14:23      1M</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.deepvps.com/how-to-open-nginx-directory-file-list-functionality.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
