我试图让外部人员访问我的本地主机。我通过替换编辑了 httpd.conf 文件
Allow from localhost
Allow from 127.0.0.1 ::1
Allow from 127.0.0.1
经过
Allow from all
什么都没发生。但是,当我尝试恢复旧配置时,没有任何效果,我无法访问 localhost 或 127.0.0.1。我得到'403禁止'
我的 httpd.config:
DocumentRoot "c:/"
<Directory "c:/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"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/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:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag - don't remove
Allow from localhost
Allow from 127.0.0.1
Allow from 127.0.0.1 ::1
</Directory>
我现在能做什么 ?