局域网无法访问Apache服务器
问题描述
自己电脑上输入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
问题解答
回答1:我之前也遇到过,在公司的电脑的时候连同一WiFi手机无法访问本机地址,但是在我自己家的电脑用随身WiFi就可以访问本机,后来在虚拟主机列表中添加一个本机ip地址,就可以访问了。(虽然这样感觉有点别扭,因为在公司里电脑ip地址是动态的,可能过几天就得换。。)
相关文章:
1. mysql - 一个表和多个表是多对多的关系,该怎么设计2. python 如何实现PHP替换图片 链接3. html5 - iOS的webview加载出来的H5网页,怎么修改html标签select的样式字体?4. 一个mysql联表查询的问题5. python如何不改动文件的情况下修改文件的 修改日期6. javascript - git clone 下来的项目 想在本地运行 npm run install 报错7. mysql主从 - 请教下mysql 主动-被动模式的双主配置 和 主从配置在应用上有什么区别?8. angular.js - 三大框架react、vue、angular的分析9. python - django 里自定义的 login 方法,如何使用 login_required()10. 主从备份 - 跪求mysql 高可用主从方案
