在子文件夹的Apache2目录浏览 [英] Subfolder directory browsing in Apache2
本文介绍了在子文件夹的Apache2目录浏览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在有一个文件夹 HTTP:// MYSERVER /文件夹/ 的,我有这个文件夹禁用目录浏览
Got a folder at http://myserver/folder/, I have disabled directory browsing for that folder.
但我想启用 HTTP的子文件夹目录浏览:// MYSERVER /文件夹/
我怎样才能做到这一点?
How can I do this??
感谢。
推荐答案
这里的工作简单的解决方案:
here's a working simple solution:
<Directory /path/to/docroot/folder>
Options -Indexes
</Directory>
<DirectoryMatch /path/to/docroot/folder/(.)*/>
Options +Indexes
</DirectoryMatch>
这篇关于在子文件夹的Apache2目录浏览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文