How do I configure tomcat on port 80?
search cancel

How do I configure tomcat on port 80?

book

Article ID: 27231

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

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

Service Desk Manager 17.x

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.