局域网无法访问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. $fields = $values = [];这条代码一直定义不了,一直报错,老师的源码也是被报错的,执行不了,请问该怎么解决这个问题2. python - 求一个在def中可以实现调用本def满足特定条件continue效果的方法(标题说不太清楚,请见题内描述)3. angular.js - angularjs的自定义过滤器如何给文字加颜色?4. javascript - 用表单提交两个时间段请求后台返回对应数据时出现的一些问题!5. java - mybatis怎么实现在数据库中有就修改,没有就添加6. 正则表达式 - python pandas的sep参数问题7. docker内创建jenkins访问另一个容器下的服务器问题8. MYSQL新建用户设置可以远程访问的问题9. mysql - SQL操作时间的函数?10. docker api 开发的端口怎么获取?
![$fields = $values = [];这条代码一直定义不了,一直报错,老师的源码也是被报错的,执行不了,请问该怎么解决这个问题](http://www.haobala.com/attached/image/news/202205/093622cb60.png)