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