apache 403 错误 You don't have permission to access on this server.
在配置好了Apache 服务器后,测试已经通过了,但是通过浏览器访问localhost 时,出现403 错误提示,
Forbidden
You don't have permission to access / on this server
请教出现这个问题的原因是什么呢?如何解决?
这是由于你更改了你的DocumentRoot ,而更改了这个默认值后,下面还有一个值是要随着更改的。就在它下面不远的地方,有这样一段:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Your_New_DocumentRoot/">
中括号里的内容就是你更改的新值。这样就不会出现403 错误了。
最好不要将默认文件夹转移目录!!!