打开httpd.conf<Directory "D:/myweb">#
# 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.0/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>看上面的注释说明
保存,重启Apache
---------
Forbidden
You don't have permission to access / on this server.
--------------------------------------------------------------------------------Apache/2.0.54 (Win32) PHP/5.0.4 mod_jk2/2.0.4 Server at 127.0.0.1 Port 80