局域网无法访问Apache服务器
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:02:28
[Linux讨论组]

自己电脑上输入ip能访问,局域网同学电脑上输入ip无法访问。
以做如下配置:
1.

2.已经关闭360。

3.Httpd.conf文件修改如下:


#
# 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.4/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:
#   AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all

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

onlineoffline tag - don't remove

Require local

4.配置了入站,出站规则,允许所有连接。

5.在自己电脑上访问

6.同学电脑访问

7.同学电脑ip:172.18.47.83
我的ip:172.18.141.56

过去多啦不再A梦
过去多啦不再A梦

全部回复(1)
黄舟

我之前也遇到过,在公司的电脑的时候连同一WiFi手机无法访问本机地址,但是在我自己家的电脑用随身WiFi就可以访问本机,后来在虚拟主机列表中添加一个本机ip地址,就可以访问了。(虽然这样感觉有点别扭,因为在公司里电脑ip地址是动态的,可能过几天就得换。。)

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号