How to Run Confluence on Two Different Ports

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Description

We want to run Confluence on two different ports simultaneously. This article explains how to create such a setup and is applicable to any webapp running behind apache Tomcat.

Adding multiple ports can degrade performance. Test these changes in a testing environment before applying to production.

Resolution

  1. Open the <Confluence_Installation_Directory>/conf/server.xml file

  2. Note the <connector> tag and copy this section

  3. At the end of the existing connector tag, paste the copy from step two

  4. Change the port value in this new connector section to the additional port to be used. It will be something like the below:

    1 2 3 4 5 6 7 8 <Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="48" minSpareThreads="10" enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol"/> <Connector port="8453" connectionTimeout="20000" redirectPort="8443" maxThreads="48" minSpareThreads="10" enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol"/>
  5. Save the file and restart Confluence.

We will now be able to connect using either port 8090 OR 8453 (as per the above example)

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.