IE兼容模式不能与Apache虚拟主机的配置被禁用 [英] IE Compatibility mode cannot be disabled with Apache vhost config
问题描述
我有一个大问题,尝试禁用IE的兼容模式。
I am having a big issue trying to disable IE's Compatibility mode.
在很多撞头,我已经查明问题到网站是否已送达Apache的默认配置,或者作为一个虚拟主机。
After much head banging, I have traced the issue down to whether the site is been served as Apache's default config, or as a virtual host.
我知道这是事实,当我与'localhost'的域名访问网站,一切都很好。当我通过在虚拟主机配置的域访问同样的页面 - 网站呈现在兼容模式下
I know this to be the case as when I access the site with the 'localhost' domain, everything is fine. As soon as I access the very same page via a domain configured in a virtual host - the site renders in Compatibility mode.
任何人都可以请阐明这个疯狂的问题?任何光线
Can anyone please shed any light on this crazy issue???
服务网站作为默认主机是不是一种选择。
Serving the site as the default host isn't an option.
- 院长
推荐答案
啊,哈!
这里 (重点煤矿):
大量的业务线,网站是当今Internet Explorer 7的能力。为了preserve兼容性, Internet Explorer 8中附带智能默认基于区域的评价即可。在默认状态下,在Internet Explorer 8标准模式下的公共互联网显示器上的所有网站(兼容性视图关闭)和所有Intranet网站在Internet Explorer 7标准模式(兼容性视图上)显示。
A large number of line-of-business websites are Internet Explorer 7 capable today. In order to preserve compatibility, Internet Explorer 8 ships with smart defaults based on zone evaluation. In the default state, all sites on the public internet display in Internet Explorer 8 Standards mode (Compatibility View off) and all intranet websites display in Internet Explorer 7 Standards mode (Compatibility View on).
...
如果您导航到如 HTTP在您的本地Intranet站点:// myPortal 并的 HTTP://的SharePoint /网站/ MYSITE ,Internet Explorer 8的标识本身'7',版本向量的'7'的用户代理字符串,并显示网页这触发标准模式在Internet Explorer 7的标准模式。这种组合允许在Internet Explorer 7工作正常的网页继续在IE8这样做。
If you navigate to sites on your local intranet like http://myPortal and http://sharepoint/sites/mySite, Internet Explorer 8 identifies itself with a User Agent string of ‘7’, Version Vector of ‘7’, and displays webpages that trigger standards mode in Internet Explorer 7 Standards mode. This combination allows webpages that worked correctly in Internet Explorer 7 to continue to do so in IE8.
我不评论这个。我敢肯定,这有一些很好的现实原因,但我还是有冲动打我的头在桌子上。
I'm not commenting this. I'm sure this has some good real-world reasons, but I still have the urge to hit my head on the desk.
这篇关于IE兼容模式不能与Apache虚拟主机的配置被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!