在局域网(比如,在同一个宿舍里)中,如何在另一台计算机中访问自己电脑上的本地网站呢?
操作系统:Windows XP
服务器:WAMP5
网站:PHP网站(ECSHOP)
打开httpd.conf,找到并修改
OptionsFollowSymLinks
AllowOverride None
Orderdeny,allow
Allow from all#以前是Deny fromall
Satisfy all
......
#
# Possiblevalues for the Options directive are "None", "All",
# or anycombination of:
# Indexes IncludesFollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that"MultiViews" must be named *explicitly* --- "Options All"
# doesn'tgive it to you.
#
# TheOptions directive is both complicated andimportant. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for moreinformation.
#
OptionsIndexes FollowSymLinks
#
#AllowOverride controls what directives may be placed in .htaccessfiles.
# It can be"All", "None", or any combination of the keywords:
# Options FileInfo AuthConfigLimit
#
AllowOverride all
#
# Controlswho can get stuff from this server.
#
# onlineoffline tag - don'tremove
OrderDeny,Allow
Deny fromall
Allow from all #以前是Allow from 127.0.0.1
注意:把防火墙关掉。