在httpd.conf中手工設置。
示例:將http://127.0.0.1/跳轉到http://127.0.0.1/phpinfo.php
#APMServ默認虛擬主機
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *
DocumentRoot "D:/APMServ5.2.6/www/htdocs"
RewriteEngine On
RewriteRule ^/$ /phpinfo.php [R=301]
<Directory "D:/APMServ5.2.6/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>