2011-05-03 180 views
-1

我做符號鏈接:ln -s/link到根..如何忽略符號鏈接中的目錄索引文件?

該目錄包含的索引文件(的index.php,index.html的)等,

我不能老是有內容的列表,我直接得到索引..

我想知道如何獲取內容的列表,即使索引文件存在。

回答

1

Apache使用的索引文件由DirectoryIndex指令驅動。如果您在虛擬主機或目錄中使用不存在的文件名更改此指令,則將阻止apache找到此文件。

因此,例如,假設你想這種行爲的目錄/ foo的

<Directory /foo> 
    # we need this option activated the get automatic listing 
    Option +Indexes 
    DirectoryIndex not_a_directory_index.does_not_exists.file 
</Directory>