首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何告诉Websphere 7关于前端负载均衡器,以便正确处理重定向?

如何告诉Websphere 7关于前端负载均衡器,以便正确处理重定向?
EN

Server Fault用户
提问于 2012-04-27 09:53:55
回答 1查看 1.1K关注 0票数 0

在WebLogic 11G上,我可以使用控制台在服务器或集群上设置FrontendHost和FrondendPort,以便正确处理重定向并最终解析到前端负载均衡器而不是本地主机。

例如,与此相关的MBeans在WebLogic上是:

代码语言:javascript
复制
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上使用类似的机制。

EN

回答 1

Server Fault用户

发布于 2012-06-02 20:20:59

WebSphere使用私有头将前端主机标头传递回AppServer --只需启动一个webserver + WAS插件,将插件日志级别设置为跟踪,并查看各个$WSxx头中传递的内容。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/383778

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档