把以下虚拟机的配置加在 httpd.conf 文件末尾即可
NameVirtualHost 121.9.111.111:80
# # VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
# ServerAdmin webmaster@dummy-host.appservnetwork.com
<VirtualHost 121.9.238.161:80>
ServerAdmin webmaster@dummy-host.appservnetwork.com
DocumentRoot C:/AppServ/www/52anye
ServerName www.***01.com
ServerAlias www.***01.com
ErrorLog logs/dummy-www.52anye.com-error_log
CustomLog logs/dummy-www.52anye.com-access_log common
</VirtualHost>
<VirtualHost 121.9.238.161:80>
ServerAdmin webmaster@dummy-host2.appservnetwork.com
DocumentRoot C:/AppServ/www/bbs
ServerName ***.***02.com
ErrorLog logs/dummy-forum.gamediad.com-error_log
CustomLog logs/dummy-forum.***.com-access_log common
</VirtualHost>