为了让程序自动执行目录下的某个文件,可以配置虚拟主机中的directoryindex
如:
<VirtualHost *:80> DocumentRoot "D:/var/www/" DirectoryIndex Test/index.php ServerName test.com</VirtualHost>