apache下局域网中其他机子要访问本机的web站点——修改http.conf方法

在http.conf在下面的这段话中找到下面这句话
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1   #把这里改成你想要的访问的本机的其他机子的ip地址如192.168.1.11,如果多个中间用空格隔开或者直接填写all(全部)



<Directory "D:/PHP/webroot/">

#
# 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.2/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 all

#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.1.12

</Directory>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章