同一台电脑,家里和公司访问虚拟主机速度竟然不一致。
hosts文件里已手动添加 example.com 127.0.0.1
apache配置文件中添加
<VirtualHost *:80>
DocumentRoot "D:/example"
ServerName example.com
</VirtualHost>
hosts文件里已手动添加 example.com 127.0.0.1
apache配置文件中添加
<VirtualHost *:80>
DocumentRoot "D:/example"
ServerName example.com
</VirtualHost>
解决方案 »
- 请问下这是什么BISupport.LicenseGenerator
- 我自己想到的一个 统计邮件被打开次数的方便的方法
- php的mssql_fetch_row问题
- 请问CSDN在结贴时鼠标移到某个框就显示还有多少分的做法,如何实现?
- php如何获取从ASP.NET页面传过来的值,并显示 出来
- iframe/二维数组session中传递方法/搜了以前的帖子,写的都不太明白啊,还是我太笨了啊
- 江湖告急!求救鼠标事件!急,线上等
- 一段QQ在线的程序,但运行时出错了,不知道怎么解决,解决马上给高分在线等
- 初来乍到,100分作为见面礼!!
- php中<script language="javascript"></script>语句没用
- php程序的模板标签
- 有关dynamic programming languages的问题
hosts文件里已手动添加 example.com 127.0.0.1
那么 example.com 访问到的就是你作此设置的机器,如果家里和公司访问虚拟主机速度竟然不一致那只能是“携带途中碰坏了”
hosts 的作用就是绕过 DNS
out line from /etc/hosts, and the Network Information Service (NIS or YP), depending upon the contents of the order line in /etc/host.conf.
(See resolv+(8)). The default action is to query named(8), followed by /etc/hosts.意思就是先默认是先/etc/hosts,然后DNS,可以配置hosts.conf配置这个先后顺序。