1,打开C:\Windows\System32\drivers\etc hosts,配置以下信息
127.0.0.2 ad.com 127.0.0.3 inapp.com
2,打开APACHE httpd.conf
在最后面加入
<VirtualHost 127.0.0.2> DocumentRoot E:\projects\AD ServerName ad.com </VirtualHost> <VirtualHost 127.0.0.3> DocumentRoot E:\projects\INAPP ServerName ad.com </VirtualHost>