局域网android 访问 apache服务器配置
2016-08-10 18:41
309 查看
关闭所有的防火墙
添加外网访问本地ip ,这个ip 通过cmd 进入 ipconfig 查出
添加外网访问指定的目录
<VirtualHost 192.168.1.100:80>
DocumentRoot "D:/wamp/www/ws"
</VirtualHost>
局域网访问Apache PHP错误:Forbidden You don't have permission
to access / on this server.
添加外网访问本地ip ,这个ip 通过cmd 进入 ipconfig 查出
添加外网访问指定的目录
<VirtualHost 192.168.1.100:80>
DocumentRoot "D:/wamp/www/ws"
</VirtualHost>
局域网访问Apache PHP错误:Forbidden You don't have permission
to access / on this server.
在原有的位置文件中找到配置节 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory> 修改成 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow # Deny from all Allow from all #允许所有访问 Satisfy all </Directory> 还有 <Directory "D:/Wamp5/www"> # # 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 </Directory> 修改成 <Directory "D:/Wamp5/www"> # # 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 Allow from all </Directory> 然后保存,重启服务,在访问就解决了这个问题。
相关文章推荐
- 配置Apache使得同一局域网的其他主机能访问此Apache服务器
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache服务器将自己的电脑作为主机,使局域网内的电脑可以访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 解决在局域网不能访问apache服务器问题
- apache 127.0.0.1能访问,localhost不能访问,局域网不能访问apache服务器
- APACHE局域网配置域名访问
- RHEL6.3配置Apache服务器(3) 虚拟目录及基于客户端地址的访问控制
- Android 手机/平板 连接局域网访问局域网电脑Web服务器
- 解决Apache服务器虚拟目录局域网内不能访问的问题
- Windows 7上Apache服务无法让局域网内其他计算机访问 ; Apache服务配置外网
- 解决apache服务器本地可以访问,同局域网内他人不能访问的问题(转)
- 局域网无法访问apache服务器
- 【异常】Android中使用localhost:8080或者172.0.0.1:8080访问本地服务器org.apache.http.conn.HttpHostConnectException异常