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

网上的答案千篇一律,没有一个能用的,真心怀疑这些作者有没有自己试过他们的答案。
直接上答案:
打开 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了

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理