You don't have permission to access / on this server.
文章目录
网上的答案千篇一律,没有一个能用的,真心怀疑这些作者有没有自己试过他们的答案。
直接上答案:
打开 Apache/conf/extra/httpd-vhosts.conf
修改
<VirtualHost _default_:80>
ServerName example.com
DocumentRoot "把这里改成你的document root"
<Directory "把这里改成你的document root">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
也有这样的
总之吧DocumentRoot改过来就对了
然后重启一下Apache,就OK了

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论