今天在測試一個php程序的時候
Forbidden
You don
開始的時候我是用進行的測試
後來咨詢了一下朋友(php高手)
在原有的位置文件中找到配置節
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny
Deny from all
Satisfy all
</Directory>
修改成
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny
# Deny from all
Allow from all
#允許所有訪問
Satisfy all
</Directory>
還有
<Directory "D:/Wamp
#
# Possible values for the Options directive are "None"
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly*
# doesn
#
# The Options directive is both complicated and important
# http://#options
# for more information
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in
# It can be "All"
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server
#
# onlineoffline tag
Order Deny
Deny from all
Allow from
</Directory>
修改成
<Directory "D:/Wamp
#
# Possible values for the Options directive are "None"
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly*
# doesn
#
# The Options directive is both complicated and important
# http://#options
# for more information
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in
# It can be "All"
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server
#
# onlineoffline tag
Order Deny
# Deny from all
# Allow from
Allow from all
</Directory>
然後保存
From:http://tw.wingwit.com/Article/program/PHP/201311/21175.html