Kurinchi Blogger Scribbles …


May 08
2009

How to set Tomcat to run on port 80?

Last updated: May 6th, 2009

Setting Tomcat to work on port 80 instead of port 8080

There may be instances when you want Tomcat to run on port 80 and not on port 8080 which is the default port allocated to it on installation.

If Apache is installed in the machine, then you need to stop the apache server (if this were to be for a temporary cause) and if you need it permanently then you should disable apache on start up.

To stop apache issue the command
$ /etc/init.d/apache2 stop

Then go to Tomcat configuration file
$ cd /usr/local/tomcat/conf/
$ vi server.xml

Check for this line that states that the connector port is 8080 and change it to port 80.

connectionTimeout="20000"
redirectPort="8443" />

Save the file and then restart Tomcat server. Now Tomcat will use port 80

Tags: , , ,

Leave a Reply


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict