将#去掉,使虚拟地址的配置文件生效。
在配置文件最后加入需要配置的虚拟主机配置
DocumentRoot "/Applications/MAMP/htdocs/test"
DocumentRoot "/Applications/MAMP/htdocs/active/"
三:进入hosts 文件 vim /etc/hosts
加入