How to change the http port number used by SPECTRUM OneClick Tomcat web server
search cancel

How to change the http port number used by SPECTRUM OneClick Tomcat web server

book

Article ID: 52096

calendar_today

Updated On: 02-24-2020

Products

Spectrum CA eHealth

Issue/Introduction

How to change the http port number used by SPECTRUM OneClick Tomcat web server

Environment

Release: Any
Component:

Resolution

The http port used by the OneClick web service is defined in the $SPECROOT/tomcat/conf/server.xml file.

For Windows it is port 80 by default:

<Connector port="80" URIEncoding="UTF-8" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" enableLookups="true" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" tcpNoDelay="true" />

For Linux, it is port 8080 by default:

<Connector port="8080" URIEncoding="UTF-8" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" enableLookups="true" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" tcpNoDelay="true" />

To change the default http port:

1. Stop the tomcat on the OneClick system
    a. On Windows, stop the SpectrumTomcat service
    b. On Linux, run the $SPECROOT/tomcat/bin/stopTomcat.sh script

2. Make a backup of the $SPECROOT/tomcat/conf/server.xml file

3. Edit the $SPECROOT/tomcat/conf/server.xml file file and change the value of the <Connector port >

4. Save the change

5. Start tomcat on the OneClick server:
    a. On Windows, start the SpectrumTomcat service
    b. On Linux, run the $SPECROOT/tomcat/bin/startTomcat.sh script