1、修改C:\Windows\System32\drivers\etc目录下的hosts文件
127.0.0.1(本机) aaa.com(域名)
2、修改C:\wamp\bin\apache\apache2.4.9(apache版本)\conf\extra目录下的httpd-vhosts.conf文件
<VirtualHost *:80>
ServerName aaa.com
DocumentRoot "C:\wamp\www\aaa"
<Directory "C:\wamp\www\aaa">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
3、重启服务器,访问aaa.com,自然就回访问到C:\wamp\www\aaa