配置多个站点
由于 XAMMP 默认站点必须放在 /Applications/XAMPP/htdocs/ 目录下
打开 /Applications/XAMPP/etc/httpd.conf
搜索 Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
保前面没有 # 号
然后打开 /Applications/XAMPP/etc/extra/httpd-vhosts.conf 文件
*:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/yhcms"
ServerName zzyuxing.cn
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
]]>
XAMPP for mac 配置多个站点:等您坐沙发呢!