【发布时间】:2016-01-27 02:39:43
【问题描述】:
我的 .htaccess 中有以下内容:
# "-Indexes" will have Apache block users from browsing folders without a
# default document Usually you should leave this activated, because you
# shouldn't allow everybody to surf through every folder on your server (which
# includes rather private places like CMS system folders).
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
但是,我有一个没有索引文件的目录(我更喜欢这样保存),我需要启用访问。如何从上面的代码中排除这个目录?
【问题讨论】:
-
我的回答解决了你的问题吗?如果是这样,如果您能将其标记为已接受和/或支持它,我将不胜感激,这样我就可以得到信任,并且将来阅读本文的其他人会看到它解决了它。谢谢