The port number on which the application server is listening is added to an incoming request. The default port number for WebSphere Lombardi Edition Versions 7.2 and 7.1 is 19086; for IBM Business Process Manager, the default port number is 9443. This addition causes problems for load balancers as it redirects to the load balancer host and adds 19086 or 9443 to the request.
Resolving The Problem
To address this issue, complete the following steps for each server in your cluster from the administrative console:
- Click WebSphere Application Servers > server_name.
- Click Web Container Settings > Custom Properties.
- Add the following properties:
- Name: trusthostheaderport
- Name: com.ibm.ws.webcontainer.extractHostHeaderPort
After you complete the previous steps, restart the server or servers.
When you go to http://myserver/portal, it will not redirect you to the following URL: http://myserver:port/portal
For more information on the previous settings, see the Web container custom properties topic in the WebSphere Application Server product documentation.
If you get a virtual host error in the browser after making this change, add port 80 (or whatever port you are requesting) to your twprocsvr_host alias and remove 80 from the default_host alias using the administrative console.
Was this topic helpful?
15 June 2018