How to customize default Tomcat port

By default Apache Tomcat listens on port 8080 but we might want to change this port:

  1. Find your Apache Tomcat installation folder
  2. Navigate to conf folder
  3. Open server.xml file
  4. Find the following lines:
    <Connector port="8080" protocol="HTTP/1.1"
    redirectPort="8443" />
  5. Change the connector port according to your preferences. In my case to port 80
    <Connector port="80" protocol="HTTP/1.1"
    redirectPort="8443" />
  6. Save the file and exit
  7. Restart your server and you are ready to go

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s