IBM Support

How do I change the default port in Apache Tomcat?

Question & Answer


Question

How do I change the default port in Apache Tomcat?

Answer

In order to change the default port in Apache Tomcat, you need to:

1. Stop Apache Tomcat service

2. Go to your Apache Tomcat folder (for example C:\Program Files\Apache Software Foundation\Tomcat 7.0) and find file server.xml under \conf\ folder.

3. Modify the Connector port value from 8080" to the one you want to assign to your web server.

Example:

From: <connector port="8080" protocol="HTTP/1.1" ??????????????
To: <connector port="8085" protocol="HTTP/1.1"

4. Save the file

5. Restart the Apache Tomcat service

Version 7.0+

"

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSMKJE","label":"IBM Incentive Compensation Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
08 December 2018

UID

ibm10779067