泉源:网海拾贝
关头错误:You don't have permission to access / on this server
翻开网页,成绩接见提醒:403错误!封闭了IE的"表现敌对的HTTP错误",表现没有权限接见(You don't have permission to access / on this server)!
我想着大要是没有权限去接见该目录,由于一样泛泛状态下,NTFS对接见权限节制的很严格的!
于是翻开目录,一看,接见权限竟然是everyone的完全节制!那用户在文件夹接见权限上是相对没有成果了!肯定是apache的设置成果了,于是上彀搜索,找到如下干系信息,用于修正权限.
以下为引用的内容:
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
</Directory>
凭证设置文件提醒,此设置是用于修正Apache对悉数目录的接见权限的,如果随意率性修正,大要会带来安全隐患的!那我们来看看事实是什么在作祟,让我们无法接见网页的吧!
Deny from all 有点英文根本的都可以看的出来,这里是关头:回绝悉数!
将Deny改为Allow试试!(由于大要会存在大小写敏感的成果,所以引荐用首字母大写,有兴味的可以自身考试考试小写!)一下议决了,但是这样设置的话效能器安全性会...
于是我连气儿往下看设置文件!
发现晰以下内容
#
# This should be changed to whatever you set DocumentRoot to.
#
以上这行解释的意思:无论你的效能器根目录设置为什么,你都必须担保此处设置保持一概!
以下为引用的内容:
<Directory "默许目录">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
再将以上的"默许目录"设置为"目标目录",(固然已经将对悉数权限接见的设置修正为回绝了!)鼎新一下页面,OK,议决了!
版权声明:
原创作品,答允转载,转载时请务必以超链接体例标明文章 原始情由 、作者信息和本声明。不然将清查法律责任。