tomcat 5.5.25 上的 x-forward-for
我正在努力让 x-forward-for 在 tomcat 5.5.25 上工作,我知道 Tomcat 6.0.24 的补丁已经发布,但我们现在无法升级我们的 tomcat 版本。因此,我深入研究了 Tomcat 6.0.24,发现 RemoteIPValve.class(实现 x-forward-for 的类)位于 catalina.jar 中。我的问题是有人曾经从新版本的 tomcat 中获取 catalina.jar 并将其复制到旧版本的 Tomcat 中吗?我的计划就是这样做,将新的 catalina.jar 放入我们的 5.5.25 版本中。我只是想看看是否有人已经尝试过类似的事情并取得了成功。
I am working on getting x-forward-for to work on tomcat 5.5.25, I know a patch has gone out for Tomcat 6.0.24, but we can't upgrade our tomcat version right now. So I did some digging into the Tomcat 6.0.24 and found the RemoteIPValve.class(the class that implements x-forward-for) is located in catalina.jar. My question is has anybody ever taken catalina.jar from a new version of tomcat and copied over to an older version of Tomcat? My plan is to do just that, take the new catalina.jar and drop it in our 5.5.25 version. I just wanted to see if anybody had already tried something like this and had success.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,Tomcat 5.5 可以使用向后移植。所有详细信息(jar、源和 svn)都在这里:http:// /code.google.com/p/xebia-france/wiki/RemoteIpValve#Install_/_Download。
西里尔(泽比亚)
Please note that a backport is available for Tomcat 5.5. All details (jar, sources and svn) are here : http://code.google.com/p/xebia-france/wiki/RemoteIpValve#Install_/_Download .
Cyrille (Xebia)