解决 403 Forbidden You don't have permission to access / on this server

碰到一个问题,开启了mac自带的Apache,结果当访问里面的文件夹时,出现 403 Forbidden You don’t have permission to access / on this server,网上各种查阅资料,没有解决,原因是,那些解决方案是低版本的apache,而我的电脑是Apache/2.4.10 (Unix)

解决方法:

  1. 打开终端,输入 sudo vi /etc/apache2/httpd.conf
  2. 找到解决 403 Forbidden You don't have permission to access / on this server_第1张图片
  3. 改成2中所示

自己遇到的问题,记下

你可能感兴趣的:(解决 403 Forbidden You don't have permission to access / on this server)