将虚拟主机的默认Apache页面更改为生成的mod_autoindex列表

我的Apacheconfiguration中有以下虚拟主机:

<VirtualHost *:80> ServerName foobarspaz DocumentRoot "/path/to/document/root" </VirtualHost> 

文档根目录中没有index.html文件,所以访问http:// foobarspaz为我的服务器提供默认的Apachetesting页面。

我希望它提供一个mod_autoindex生成的文档根目录列表,而不是默认页面。 我将如何去做这件事? (我不确定如何去解决服务器根目录的缺省页面行为。)

Markus的build议不起作用,但是在看了Christopher在他的评论中指出的/etc/httpd/conf.d/welcome.conf文件之后,我在VirtualHost指令中尝试了以下内容:

 <LocationMatch "^/+$"> Options Indexes </LocationMatch> 

也许这样的事情可能会起作用:

 <Directory /path/to/document/root> Options Indexes </Directory> 

是的,正如另一张海报指出的,删除welcome.conf(在Ubuntu中)或类似的默认configuration。