apache出现You don't have permission to
时间:2016-02-27 15:22 来源:linux.it.net.cn 作者:IT
LAMP一键工具,AMPServer,Wampp这些一键工具,可以帮助我们的一键部署好自己服务器的运行环境非常方便。但是,很多朋友在遇到这类问题的时候,往往找不到问题的解决方向,这里就告诉大家,上述三个工具使用的WEB服务器为Apache服务器,所以,访问提示网页的错误的时候,就往Apache故障方向去解决就可以了。
故障描述:一切设置完成后,在浏览器中运行出现在You don't have permission to access / on this server。 这是因为网站根的访问权限有问题。
解决方法:找到apache的配置文件http.conf
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
将错误代码改成如下即可
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
(责任编辑:IT)
LAMP一键工具,AMPServer,Wampp这些一键工具,可以帮助我们的一键部署好自己服务器的运行环境非常方便。但是,很多朋友在遇到这类问题的时候,往往找不到问题的解决方向,这里就告诉大家,上述三个工具使用的WEB服务器为Apache服务器,所以,访问提示网页的错误的时候,就往Apache故障方向去解决就可以了。 故障描述:一切设置完成后,在浏览器中运行出现在You don't have permission to access / on this server。 这是因为网站根的访问权限有问题。 解决方法:找到apache的配置文件http.conf # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> 将错误代码改成如下即可 <Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory> (责任编辑:IT) |