目錄我已經在我的.htaccess中的以下內容:排除從mod_autoindex.c選項-Indexes
# "-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>
不過,我有沒有一個索引文件的目錄(我寧願保持這種方式),我需要啓用訪問權限。如何從上述代碼中排除此目錄?
我的答案解決了您的問題嗎?如果是這樣,我會很感激,如果你可以將它標記爲已接受和/或提高它,所以我得到了信譽,其他人在未來閱讀這篇文章,看到它解決了它。謝謝 – sa289