我已经将shellinabox终端集成到我的rails应用程序中,但是当我尝试在IE11中访问它时,它显示“无法显示页面”。它可以在我测试过的所有其他浏览器中使用,包括IE的其他版本,而不是IE11。请求通过我的apache配置中的以下行路由到shellinabox守护程序:
<Location /shell>
Order allow,deny
Allow from all
</Location>
RewriteRule ^/shell(.*)$ http://localhost:4200$1 [P]
ProxyPassReverse /shell http://localhost:4200
任何想法将不胜感激,我真的不知道从哪里开始
我今天遇到了这个问题并解决了。ShellInABox已为IE实现了一个修复程序,该修复程序将无法处理压缩的SSL数据。但是要启用此修复程序,它仅检查从IE11开始不再包含MSIE的useragent字符串。因此,您必须将其更改为Trident。
该补丁对我有用
--- libhttp/httpconnection.c.orig 2012-04-21 19:30:44.000000000 +0200
+++ libhttp/httpconnection.c 2014-08-28 15:48:06.000000000 +0200
@@ -568,7 +568,7 @@
// also has difficulties with SSL connections that are being proxied.
int ieBug = 0;
const char *userAgent = getFromHashMap(&http->header, "user-agent");
- const char *msie = userAgent ? strstr(userAgent, "MSIE ") : NULL;
+ const char *msie = userAgent ? strstr(userAgent, "Trident") : NULL;
if (msie) {
ieBug++;
}
希望能帮助很多其他人:)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句