localhost访问错误Forbidden You don't have permission to access / on this server.解决办法(亲测)

在httpd.conf文件下找到这段:

<Directory />
    Options FollowSymLinks
    AllowOverride None
   Order deny,allow
    Deny from all
</Directory>

然后修改为:

<Directory />  
    Options Indexes FollowSymLinks  
    AllowOverride None  
</Directory>

问题解决。

QQ截图20151117110607

QQ截图20151117111224

原文地址:https://www.cnblogs.com/linuxnewbie/p/4971110.html