入口后面的Websphere应用程序服务器重定向到dns:port
我正在尝试在入口后面运行Websphere. 我已经为它成功配置了入口,并且能够访问控制台. 我可以访问控制台的IP地址是
I am trying to run websphere behind ingress. I have successfully configured the ingress for it and I am able to access the console. The ip on which I am able to access the console is
https://mydomain/ibm/console/logon.jsp
注意:我有一个域,为此我创建了一个A记录.
Note: I have a domain , for which I created a A record.
当我登录控制台时, 我被重定向到
When I login into the console , I am redirected to
https://mydomain:9043/ibm/console/
此页面不存在.
如果我明确运行URL https://dns/ibm/console/login.do?action=secure
.我的应用程序运行正常.
This page does not exist.
If I explicitly run the URL https://dns/ibm/console/login.do?action=secure
. My application works fine.
有人可以告诉我需要什么配置,以便不将其重定向到dns:port吗?
Can someone tell me where is the configuration needed so that it is not redirected to dns:port?
我已经在URL之后创建了所有配置: 在入口后面配置Websphere应用服务器的问题
I have created all the config following the URL: Problem configuring websphere application server behind ingress
请求为http://hostname/ibm/console/logon.jsp
,并且返回http://hostname:9080/ibm/console/logon.jsp
这引起了混乱,因此我们面临一个问题.
This is causing confusion and thus we are facing an issue.
我们的应用程序使用的端口由两个属性控制:
The port which our was app uses is controlled by two properties:
trusthostheaderport = true
com.ibm.ws.webcontainer.extractHostHeaderPort = true
这些可以在WAS管理控制台中的以下位置创建:
These can be created in the WAS Admin console under:
服务器>服务器类型> WebSphere应用程序服务器> [服务器名称]> Web容器设置>网页容器>附加属性>自定义属性
Servers > Server Types > WebSphere application servers > [server_name] > Web Container Settings > Web container > Additional Properties > Custom Properties
将这两个属性的值都设置为"true".应该强制WAS使用前端端口(从Host标头)而不是Webcontainer端口.
Setting both of these properties with a value of "true" should force WAS to use the front-end port (from the Host header) instead of the Webcontainer port.
注意:您需要在更改后重新启动服务(在docker容器的情况下重新启动)
Note: You need to restart the service after the change ( restart in case of docker containers)
请找到文档 查看更多