apache配置directoryindex

为了让程序自动执行目录下的某个文件,可以配置虚拟主机中的directoryindex

如:

<VirtualHost *:80>
    DocumentRoot "D:/var/www/"
    DirectoryIndex Test/index.php
    ServerName test.com
</VirtualHost>

posted @ 2013-10-01 00:39  幻星宇  阅读(2619)  评论(0编辑  收藏  举报