Apache VirtualHost 问题非常慢
我刚刚安装在Windows7、Apache2.2.17、PHP5.3.5上。连接到 LAN 的 PC。我已经配置了虚拟主机,例如:
<VirtualHost *:80>
DocumentRoot "C:/www/tm"
ServerName tm
ServerAlias www.tm
ErrorLog "logs/tm-error.log"
CustomLog "logs/tm-access.log" common
<directory "C:/www/tm">
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</directory>
</VirtualHost>
在“主机”文件中,我只需在末尾添加行:“192.168.0.55 tm”(我的 LAN-IP)。如果我输入地址 http://tm - 它可以正常打开!而且它工作得很快而且工作得很好!
但是,如果我尝试从同一 LAN 上的其他计算机执行此操作(在主机文件中添加记录),它会打开非常非常慢。 (phpinfo() 页面打开约 1 分钟)
两台计算机上的 Windows 防火墙均已关闭。网络工作正常。电脑到电脑 Ping 正常! 有什么想法吗? (在 LocalLan 连接中关闭 IPV6)
I just installed on Windows7, Apache2.2.17, PHP5.3.5. PC connected to LAN. I have configure vhosts, like:
<VirtualHost *:80>
DocumentRoot "C:/www/tm"
ServerName tm
ServerAlias www.tm
ErrorLog "logs/tm-error.log"
CustomLog "logs/tm-access.log" common
<directory "C:/www/tm">
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</directory>
</VirtualHost>
And in 'hosts' file I just add line at the end: '192.168.0.55 tm' (my LAN-IP). If I type in address http://tm - it opens fine! And it work fast and it work fine!
But if I try to do this from other computer on same LAN, (with added record to hosts file), it opens verry verry slooooow. (phpinfo() page opens ~ 1 min)
Windows Firewall turned off on both machines. Net works fine. Ping PC-to-PC fine!
Any ideas? (IPV6 turned off in LocalLan connection)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论