Change the context path used to access Jira server

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

Symptoms

Context paths are useful in cases where you want to either have your application resolve at http://yourdomain.com/jira or make your application unique.

Resolution

  1. Shut down your JIRA application instance

  2. Locate the server.xml file which located at the following path: $JIRA_installation_folder/conf/server.xml

  3. Edit server.xml, and add the context path inside the Context path = "" quotation area, view the example below:

    Example

    Original:

    1 <Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false"> </Context>

    After change:

    1 <Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false"> </Context>

    ℹ️ The path is not always in the beginning of the Context parameters, you might have to read over the entire list of parameters to find it. You can also define any word of your choosing as long as it starts with a forward slash.

    ℹ️ For more details you can see Apache context configuration.

  4. Save the server.xml

  5. Start your JIRA applications

  6. Access your applications with the context path, for example:

  7. Configure the 'Base URL' in JIRA Administration > Global Settings > General Configuration to the new location from which your users will access JIRA applications.

Alternative methods for setting the default Tomcat application include:

  • Rename WAR file to ROOT.war, and re-start Tomcat.

    OR

  • Place WAR file outside of $CATALINA_BASE/webapps (to avoid double deployment). Put a context file named ROOT.xml in $CATALINA_BASE/conf/. Set the docBase attribute to point at the location of WAR file. Leave the path element blank, as it is derived from the name of the xml file (ROOT.xml).

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.