macOS Sierra禁止使用Apache Localhost 403 [英] Apache Localhost 403 Forbidden with macOS Sierra

查看:95
本文介绍了macOS Sierra禁止使用Apache Localhost 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

macOS Sierra更新使我的Apache本地主机无法访问.好吧,只有localhost/是可访问的.但是localhost/<other-directory>/下的子文件夹为.

macOS Sierra update made my Apache's localhost inaccessible. Well, only localhost/ is accessible. But sub-folders under localhost/<other-directory>/ are NOT.

如何解决?

推荐答案

请检查/private/etc/apache2/extra/httpd-userdir.conf文件.

更改

#Include /private/etc/apache2/users/*.conf

Include /private/etc/apache2/users/*.conf

然后重新启动apache.

and restart apache.

这篇关于macOS Sierra禁止使用Apache Localhost 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆