1. apache配置文件httpd.conf,vhosts.conf
2. 在vhosts.conf下添加虚拟机
<VirtualHost *:80>DocumentRoot "D:\www\mxhy\backend\web"
ServerName mxhy_b.com
ServerAlias mxhy_b.com
<Directory "D:\www\mxhy\backend\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
3. httpd.conf中包含vhosts.conf