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目錄下的錯誤日誌找出問題所在