<?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; 目录浏览</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E7%9B%AE%E5%BD%95%E6%B5%8F%E8%A7%88/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nginx开启目录浏览功能</title>
		<link>https://www.osyunwei.com/archives/5051.html</link>
		<comments>https://www.osyunwei.com/archives/5051.html#comments</comments>
		<pubDate>Thu, 09 Aug 2012 09:36:07 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[LNMP]]></category>
		<category><![CDATA[目录浏览]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=5051</guid>
		<description><![CDATA[说明：Nginx在默认安装好之后，是禁止目录浏览的，如下图所示 http://www.osyunwei.com/soft 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 http://www.osyunwei.com/html 如果要开启目录浏览功能，请看下面操作： 1、开启全站所有目录浏览功能 vi  /usr/local/nginx/conf/nginx.conf   #编辑配置文件，在http {下面添加以下内容： autoindex on;   #开启nginx目录浏览功能 autoindex_exact_size off;   #文件大小从KB开始显示 autoindex_localtime on;   #显示文件修改时间为服务器本地时间 :wq!  #保存，退出 service nginx reload   #重新加载nginx配置 打开 http://www.osyunwei.com/soft http://www.osyunwei.com/html 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 可以看到，nginx的目录浏览功能已经打开！ 2、只打开网站部分目录浏览功能 只打开 http://www.osyunwei.com/soft 目录浏览 vi  /usr/local/nginx/conf/nginx.conf   #编辑配置文件，在server {下面添加以下内容： location   /soft { autoindex on; autoindex_exact_size off; autoindex_localtime on;                              } :wq!  #保存，退出 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/5051.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/5051.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
