Change Apache Tomcat port 8080 to 80 or another port number

Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).
Here we’ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.
=C:\Java\Tomcat_x.x
We need to edit the file named server.xml inside \conf folder.

In the server.xml file; locate the following segment.
By changing this 8080 value of port attribute, server would start listening on new port number.
After saving the changed server.xml file, Tomcat server must be restarted 
(stop then start) to activate the change.    

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...