今天在测试一个php程序的时候发现这个问题:
Forbidden
You dont have permission to access / on this server
开始的时候我是用进行的测试没有发现问题后来要在内网测试一下就要用IP地址进行那个访问了如就出现了这个问题
后来咨询了一下朋友(php高手)说修改一下php的配置文件
在原有的位置文件中找到配置节
<Directory />
Options FollowSymLinks
AllowOverride None
Order denyallow
Deny from all
Satisfy all
</Directory>
修改成
<Directory />
Options FollowSymLinks
AllowOverride None
Order denyallow
# Deny from all
Allow from all
#允许所有访问
Satisfy all
</Directory>
还有
<Directory "D:/Wamp/www">
#
# 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"
# doesnt give it to you
#
# The Options directive is both complicated and important Please see
# http://#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 all
#
# Controls who can get stuff from this server
#
# onlineoffline tag dont remove
Order DenyAllow
Deny from all
Allow from
</Directory>
修改成
<Directory "D:/Wamp/www">
#
# 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"
# doesnt give it to you
#
# The Options directive is both complicated and important Please see
# http://#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 all
#
# Controls who can get stuff from this server
#
# onlineoffline tag dont remove
Order DenyAllow
# Deny from all
# Allow from
Allow from all
</Directory>
然后保存重启服务在访问就解决了这个问题