Mac OS X上配置Apache,自定路径后出现403错误
1、这个配置了,但是并不起效果
<Directory “/Users/abc/Sites/”>
Options All
AllowOverride none
Order allow,deny
Allow from all
</Directory>
2、考虑是权限问题,最终解决方案如下:
cd /var/log/apache2
cat error_log
查看到最近日志为:
Permission denied: access to / denied (filesystem path '/Users/user/Documents/xxx') because search permissions are missing on a component of the path
根据路径,反朔授权:
cd /Users/user/Documents
chmod o+rx xxx
还不行就一级级向下授权。
授权完后网站正常访问到
发表评论或回复