在conf/extra目录下httpd-vhosts.conf
1 ##<VirtualHost *:80> 2 ##ServerAdmin webmaster@dummy-host2.example.com 3 ##DocumentRoot "/xampp/htdocs/dummy-host2.example.com" 4 ##ServerName dummy-host2.example.com 5 ##ErrorLog "logs/dummy-host2.example.com-error.log" 6 ##CustomLog "logs/dummy-host2.example.com-access.log" common 7 ##</VirtualHost> 8 9 10 <VirtualHost *:80> 11 ## mifi 引伴系统yii框架 12 DocumentRoot "D:/phpweb/mifi_yii/backend/web/" 13 ServerName mifi_yii.com 14 </VirtualHost> 15 16 <VirtualHost *:80> 17 ## mifi 所有项目目录 18 DocumentRoot "D:/phpweb" 19 ServerName localhost 20 </VirtualHost>