2011-05-03 178 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>