在WebLogic 11G上,我可以使用控制台在服务器或集群上设置FrontendHost和FrondendPort,以便正确处理重定向并最终解析到前端负载均衡器而不是本地主机。
例如,与此相关的MBeans在WebLogic上是:
MBean Name com.bea:Name=AdminServer,Type=WebServer,Server=AdminServer
Attribute Name FrontendHost
Description The name of the host to which all redirected URLs will be sent. If specified, WebLogic Server will use this value rather than the one in the HOST header.
Sets the HTTP frontendHost Provides a method to ensure that the webapp will always have the correct HOST information, even when the request is coming through a firewall or a proxy. If this parameter is configured, the HOST header will be ignored and the information in this parameter will be used in its place.
Type java.lang.String
Readable / Writable RW在Websphere 7下如何实现相同的功能呢?
后续信息:
所以我有两个用例。
一个是我有一个在WebSphere下运行的web应用程序在主机A上运行在端口9002上,LB运行在主机B上运行在端口80,当我通过http://hostb/app上的LB访问应用程序的主页时,应用程序将我的浏览器重定向到http://hostb:9002/app和它404's
我认为这是WebSphere的错,但我想这可能是应用程序的错误吗?
第二个问题是,问题中的网络应用需要发送包含URls的电子邮件,客户可以点击这些邮件才能重新进入web应用程序--显然,这需要通过LB。在WebLogic上,应用程序使用MBeans来派生LB url,我希望在WebSphere上使用类似的机制。
发布于 2012-06-02 20:20:59
WebSphere使用私有头将前端主机标头传递回AppServer --只需启动一个webserver + WAS插件,将插件日志级别设置为跟踪,并查看各个$WSxx头中传递的内容。
https://serverfault.com/questions/383778
复制相似问题