Changing the default ports on a Windows server

Learn to change the defaults ports, 9080 and 9433, to any desired values on a Windows server.

About this task

Complete the steps to change the default ports on a Windows server.

Tip: It is recommended that https is used and not http, and by default, Analytics Content Hub will redirect to https.

Procedure

  1. In the Services window, stop the AnalyticsContentHub-node1 service.
  2. In File Explorer, navigate to <install directory>\AnalyticsContentHub\app\node1\tomcat\conf.
  3. Edit the theia.properties file.
    1. Locate the lines motio.theia.tomcat.port.http=9080 and motio.theia.tomcat.port.redirect=9443.
    2. Change the values from 9080 to 80 and 9443 to 443 (or whatever wanted values).
    3. Save the theia.properties file.
  4. Edit the server.xml file.
    1. Locate the following section:
      <Connector port="9080" protocol="HTTP/1.1"
      connectionTimeout="20000"
      redirectPort="9443"
    2. Change the values from 9080 to 80 and 9443 to 443 (or whatever values that were used in step 3).
    3. Locate the following line:
      <Connector port="9443" protocol="org.Apache.coyote.http11.Http11NioProtocol"
    4. Change the 9443 value to 443 (or whatever values that were used in step 3).
    5. Save the server.xml file.
  5. In the Services window, start the AnalyticsContentHub-node1 service.

Results

Analytics Content Hub is now accessible through the new port numbers.