我是靠谱客的博主 标致曲奇,这篇文章主要介绍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>

最后

以上就是标致曲奇最近收集整理的关于apache下局域网中其他机子要访问本机的web站点——修改http.conf方法的全部内容,更多相关apache下局域网中其他机子要访问本机内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(132)

评论列表共有 0 条评论

立即
投稿
返回
顶部