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

来源:互联网 发布:淘宝商城望远镜 编辑:程序博客网 时间:2024/05/16 08:03

在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>
原创粉丝点击