直接看实例就清楚了
Listen 80
<VirtualHost *:80>
DocumentRoot D:/Server/www
ServerAdmin webmaster@lifashion.cn
ServerName localhost
ErrorLog logs/dummy-host.ZuanmingMall-error_log
CustomLog logs/dummy-host.ZuanmingMall-access_log common
</VirtualHost>
<VirtualHost *:80>
DocumentRoot D:/Server/www/zentao/www
ServerAdmin 项目管理
ServerName p.com
ErrorLog logs/dummy-host.ZuanmingMall-error_log
CustomLog logs/dummy-host.ZuanmingMall-access_log common
</VirtualHost>