1:开启httpd配置里include conf/extra/httpd-vhosts.conf
2:定位到Apache2\conf\extra\httpd-vhosts
<VirtualHost *:80>
ServerName www.test.cn //虚拟域名
DocumentRoot "D:\wamp\www\manage\Basic" //指向路径
<Directory "D:\wamp\www\manage\Basic"> //不知道
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
4:关联hosts
5:重启
6:ok