我尝试使用Wamp服务器托管html 5移动响应式网站.但是项目(sampletest)在我的笔记本电脑上工作正常,我尝试使用wifi热点在我的机器人中测试相同.在我的Android浏览器中访问笔记本电脑的本地Intranet IP(192.168.1.3)时,Wamp服务器主页打开正常.但是我的web项目sampletest没有加载.
在笔记本浏览器中
http://192.168.1.3/打开此wamp服务器主页
http://192.168.1.3/sampletest对于此页面加载
在Android浏览器中
http://192.168.1.3/打开此wamp服务器主页
http://192.168.1.3/sampletest对于此页面无法加载
Apache错误日志
[error] [client 192.168.1.3] File does not exist: C:/Apache2,referer: http://192.168.1.3/sampletest/index.html
Apache访问日志
192.168.1.3 - - [12/Apr/2014:03:24:22 +0530] "GET /sampletest/ HTTP/1.1" 200 60504
注意:sampletest应用程序在笔记本电脑上工作正常,而不是在android中加载,但是wampserver主页在android中打开很好
WAMP服务器和应用程序位置
D:\programfiles\wamp\www\sampletest
httpd.conf文件
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See
的httpd-vhosts.conf
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
#
最佳答案
您需要在Windows主机文件中添加IP
192.168.1.3 localhost
我希望这能解决你的问题
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。