1.将httpd.conf中Include conf/extra/httpd-vhosts.conf去掉注释

2.在httpd-vhosts.conf中添加
<VirtualHost *:8080>   
ServerAdmin xxx@ xxx.com
ServerName  xxx.com
DocumentRoot "D:/xxx"
    ErrorLog "logs/xxx_log"
    CustomLog "logs/xxx_access_log" combined
    <Directory "D:/xxx">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

PS:出现错误时应查看apache logs目录下的错误日志找出问题所在