Set a context path for Atlassian applications
This document outlines the steps if you wish that your Atlassian application to be accessed on a context path, such as http://ourcompany.com/<contextpath>
.
For Confluence, please refer to the Configuring the Server Base URL product documentation.
1. Stop the Atlassian applications
2. Set the context path
Fisheye and Crucible
If you're proxying Fisheye or Crucible, configure the web context path for Jetty from the admin area. See Configuring the Fisheye web server.
JIRA applications, Bitbucket Server, Bamboo
If you're proxying any of these Atlassian server applications, configure the context path in the Tomcat server.xml
file as follows.
In the Tomcat server.xml
configuration file for all applications except Crowd, locate the Context
directive that looks like this:
<Context path="" docBase="${catalina.home}/atlassian-<atlassianapp>" reloadable="false" useHttpOnly="true">
Change the directive to add the new context path:
<Context path="/<contextpath>" docBase="${catalina.home}/atlassian-<atlassianapp>" reloadable="false" useHttpOnly="true">
Use your own value for <contextpath
>. Typically, each application would use a different context path.
It is important that the path
value has a leading forward slash (/
) like path="/<contextpath>"
rather than path="<contextpath>"
.
Use these instructions to Removing the 'crowd' Context from the Application URL.
Note: You can't use /resources
as your context path for Confluence, as this is used by Confluence, and will cause problems later on.