You don’t have permission to access / on this server.

10次阅读

共计 307 个字符,预计需要花费 1 分钟才能阅读完成。

网上的答案千篇一律,没有一个能用的,真心怀疑这些作者有没有自己试过他们的答案。
直接上答案:
打开 Apache/conf/extra/httpd-vhosts.conf
修改
<VirtualHost _default_:80>ServerName example.comDocumentRoot “ 把这里改成你的 document root” <Directory “ 把这里改成你的 document root”>
AllowOverride All
Order allow,deny
Allow from all
</Directory></VirtualHost>
也有这样的

总之吧 DocumentRoot 改过来就对了
然后重启一下 Apache,就 OK 了

正文完
 0