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

网上的答案千篇一概,没有一个能用的,真心怀疑这些做者有没有本身试过他们的答案。ide

直接上答案:spa

打开 Apache/conf/extra/httpd-vhosts.confcode

修改ip

<VirtualHost _default_:80>
ServerName example.com
DocumentRoot "把这里改为你的document root"
<Directory "把这里改为你的document root">it

AllowOverride All
Order allow,deny
Allow from all

</Directory>
</VirtualHost>class

也有这样的cli

clipboard.png

总之吧DocumentRoot改过来就对了im

而后重启一下Apache,就OK了hosts

相关文章
相关标签/搜索