启用目录索引一个文件夹中 [英] Enabling directory indexing in one folder
本文介绍了启用目录索引一个文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不能以启用目录索引管理的httpd.conf在一个特定的文件夹:
I can't manage httpd.conf in order to enable directory index in one specific folder:
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
IndexIgnore *
<Directory "/srv/http/testsite/images">
Options FollowSymLinks +Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
怎么了?
推荐答案
我想什么你想要的是:
<Directory />
Options FollowSymLinks -Indexes
AllowOverride All
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/http/testsite/images">
Options FollowSymLinks +Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
这篇关于启用目录索引一个文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文