简体   繁体   English

windows和linux下Tomcat的区别

[英]Tomcat difference in windows and linux

At first, sorry for my poor English, please understand me) I wonder that there is some different behaviors of converting between tomcat for windows pc and Linux server.首先,对不起,我的英文不好,请理解我)我想知道在windows pc和Linux服务器之间的tomcat之间转换有一些不同的行为。 I mean that requested header names from browser are converted to lower case in tomcat with my pc, but Linux server's tomcat does not with the same web page.我的意思是我的电脑在 tomcat 中将浏览器请求的标头名称转换为小写,但 Linux 服务器的 tomcat 没有相同的网页。

The server application checks a header name received fro browser to equal to a server's key which has been already converted to lower case as read from the configuration file.服务器应用程序检查从浏览器接收到的标题名称是否等于从配置文件读取的已转换为小写的服务器密钥。

SO, it does work well as both keys being matched(lower case) with windows pc, but Linux server does not (header received from browser being not converted to lower case).因此,当两个键都与 windows pc 匹配(小写)时,它确实可以很好地工作,但 Linux 服务器却没有(从浏览器收到的标头未转换为小写)。

Please someone explain why this is.请有人解释这是为什么。

Thank you.谢谢你。

Local PC : windows7 Server : Red Hat Linux Enterprise Linux server(release 6.2) Tomcat version(both) : 7.0.57本地 PC:windows7 服务器:Red Hat Linux Enterprise Linux 服务器(6.2 版)Tomcat 版本(两者):7.0.57

As converting headers to lowercase is called a WONTFIX bug , I would think windows advantages on what the bug says to simplify the lookup of headers . 由于将标头转换为小写称为WONTFIX 错误 ,我认为Windows在该缺陷上的优势to simplify the lookup of headers Maybe linux is more efficient with their lookups and won't need that conversion, passing headers in a more transparent way. 也许linux的查找效率更高,并且不需要这种转换,而是以更透明的方式传递标头。

I have the same darned problem.我有同样的该死的问题。 If I used jasper report I can't used it on the linux server.如果我使用 jasper 报告,则无法在 linux 服务器上使用它。 But still works under MS OS very well.但在 MS 操作系统下仍然可以很好地工作。 Have somebody a workaround how I can fix that problem.请有人解决我如何解决该问题。 Or maybe a another workaround for me?或者对我来说可能是另一种解决方法? Thanks a lot for you help guys.非常感谢你们的帮助。 Stay safe.注意安全。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM