<p>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</p>
<pre><code>https://mydomain/ibm/console/logon.jsp
</code></pre>
<p>Note: I have a domain , for which I created a A record.</p>
<p>When I login into the console ,
I am redirected to</p>
<pre><code> https://mydomain:9043/ibm/console/
</code></pre>
<p>This page does not exist.
If I explicitly run the URL <code>https://dns/ibm/console/login.do?action=secure</code>. My application works fine.</p>
<p>Can someone tell me where is the configuration needed so that it is not redirected to dns:port?</p>
<p>I have created all the config following the URL:
<a href="https://stackoverflow.com/questions/63505087/problem-configuring-websphere-application-server-behind-ingress">Problem configuring websphere application server behind ingress</a></p>

Shivangi Bhardwaj
<p>The request is  <code>http://hostname/ibm/console/logon.jsp</code>  and it returns  <code>http://hostname:9080/ibm/console/logon.jsp</code></p>
<p>This is causing confusion and thus we are facing an issue.</p>
<p>The port which our was app uses is controlled by two properties:</p>
<pre><code>trusthostheaderport = true 
com.ibm.ws.webcontainer.extractHostHeaderPort = true 
</code></pre>
<p>These can be created in the WAS Admin console under:</p>
<p>Servers &gt; Server Types &gt; WebSphere application servers &gt; [server_name] &gt; Web Container Settings &gt; Web container &gt; Additional Properties &gt; Custom Properties</p>
<p>Setting both of these properties with a value of &quot;true&quot; should force WAS to use the front-end port (from the Host header) instead of the Webcontainer port.</p>
<p>Note: You need to restart the service after the change ( restart in case of docker containers)</p>
<p>Please find the documentation <a href="http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/rweb_custom_props.html" rel="nofollow noreferrer">here</a>.</p>
