websphere application server behind ingress redirects to dns:port

☆樱花仙子☆ 提交于 2021-02-11 13:19:44

问题


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

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/

This page does not exist. If I explicitly run the URL https://dns/ibm/console/login.do?action=secure. My application works fine.

Can someone tell me where is the configuration needed so that it is not redirected to dns:port?

I have created all the config following the URL: Problem configuring websphere application server behind ingress


回答1:


The request is http://hostname/ibm/console/logon.jsp and it returns 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 

These can be created in the WAS Admin console under:

Servers > Server Types > WebSphere application servers > [server_name] > Web Container Settings > Web container > Additional Properties > Custom Properties

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.

Note: You need to restart the service after the change ( restart in case of docker containers)

Please find the documentation here.



来源:https://stackoverflow.com/questions/64260855/websphere-application-server-behind-ingress-redirects-to-dnsport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!