把以下虚拟机的配置加在 httpd.conf 文件末尾即可标签:dummy,www,logs,网站,域名,ServerAdmin,apache,com,log From: https://blog.51cto.com/u_15810749/5721738
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 [email protected]
<VirtualHost 121.9.238.161:80>
ServerAdmin [email protected] 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 [email protected] 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>