How to get connector within jboss to redirect 18080 to 18443

Document ID : KB000010522
Last Modified Date : 14/02/2018
Show Technical Document Details

How to get http url for ENTM UI using port 18080 to redirect to use https using secure port 18443


You have users that are directly accessing ENTM UI using non-ssl URL and not the secure https SSL URL because they are not being forced to redirect.

ENTM 12.9.01 on Windows 2012R2

For doing the redirection to 18443. Please follow the steps below:

1) Stop Jboss
2) Remove tmp and work
3) Edit server.xml

-- Make sure the redirect port for the http connector is your https port. (18443)

<Connector SSLEnabled="true" URIEncoding="UTF-8" clientAuth="false" emptySessionPath="true" keyAlias="entm" keystoreFile="D:\CA\jboss\jboss-4.2.3.GA\server\default\deploy\IdentityMinder.ear\custom\ppm\truststore\ssl.keystore" keystorePass="secret" maxThreads="150" port="18443" protocol="HTTP/1.1" scheme="https" secure="true" server="PIM" sslProtocols="TLSv1,TLSv1.1,TLSv1.2"/>

<Connector URIEncoding="UTF-8" acceptCount="150" address="${jboss.bind.address}" connectionTimeout="20000" disableUploadTimeout="true" emptySessionPath="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="250" port="18080" protocol="HTTP/1.1" redirectPort="18443" server="PIM"/>

change this line as well so it redirects to 18443:

<Connector address="${jboss.bind.address}" emptySessionPath="true" enableLookups="false" port="18009" protocol="AJP/1.3" redirectPort="18443"/>

4) Edit C:\jboss-4.2.3.GA\server\default\deploy\IdentityMinder.ear\user_console.war\WEB-INF\web.xml

-- add all the below content at the bottom of the page ( right before the closing tag <\web-app> )


5) Restart Jboss

You may also need to change the baseURL info in the idmmanage console under ac-env as mentioned at the bottom of this techdoc TEC606700: