mac apache 403问题

1.起因
安装和设置好对应的开发目录,提示Forbidden You don't have permission to access /on this server.

2.检查结果
mac apache默认的用户和用户组是
User _www Group _www

3.修改成
User xxx Group staff
4.重启apache
sudo apachectl restart

点赞