How do I configure tomcat on port 80?

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

Issue:

Ports numbered less or equal to 1024 are considered to be system/security ports in Unix and Linux.

The Service Desk configuration process will not accept any Tomcat port that is less or equal to 1024 on either Linux or Unix, however this can be implemented in Windows.

 

Environment: 

All supported non-Unix environments for the selected releases.

 

Resolution:

Please be sure this port is not already in use by another application like IIS, additionally make backups before making any changes.

Locate the server.xml file under the Service Desk installation directory:

 $NX_ROOT\bopcfg\www\CATALINA_BASE\conf\server.xml

Open the file using a text editor and locate the appropriate "Connector Port", for example:

 <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
 <Connector acceptCount="100" className="org.apache.coyote.tomcat4.CoyoteConnector"
 connectionTimeout="20000" debug="0" disableUploadTimeout="true" enableLookups="true"
 maxProcessors="75" minProcessors="5" port="8080" redirectPort="8443" useURIValidationHack="false"/>

Change this to read:

 <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
 <Connector acceptCount="100" className="org.apache.coyote.tomcat4.CoyoteConnector"
 connectionTimeout="20000" debug="0" disableUploadTimeout="true" enableLookups="true"
 maxProcessors="75" minProcessors="5" port="80" redirectPort="8443" useURIValidationHack="false"/>

Update the file $NX_ROOT\NX.ENV, change all references from "8080" to "80".

Save the files and recycle the Service Desk services. Service Desk will now use tomcat on port 80.