Changing Bamboo's root context path

There are various reasons why you may wish to change Bamboo's context path. Two of those are:

  • You are running Bamboo behind a proxy.
  • You have another Atlassian application, or Java web application, available at the same hostname and context path as Bamboo, and are experiencing login problems.

Upgrade Note

Since the manual steps of this process modify your Bamboo server, you will need to repeat Steps 1-6 each time you upgrade.

Changing the context path for Bamboo:

  1. Navigate to the directory where you are running Bamboo from. This is the install directory that you extracted Bamboo to, not Bamboo home.
  2. Stop Bamboo. This can be done using /bin/stop-bamboo.bat on Windows or /bin/stop-bamboo.sh on OSX or Linux.
  3. Edit conf/server.xml and find the element below:

    <Context path="" docBase="${catalina.home}/atlassian-bamboo" reloadable="false" useHttpOnly="true"/>

    Update the path attribute to reflect the context path that you want Bamboo to be accessible at, e.g. "/bamboo":

    <Context path="/bamboo" docBase="${catalina.home}/atlassian-bamboo" reloadable="false" useHttpOnly="true"/>

    Then save the file.

     

  4. Start Bamboo using /bin/start-bamboo.bat on Windows or /bin/start-bamboo.sh on OSX or Linux.

    Bamboo should now be available at the same host as before under the new context path. For example a server that was at http://localhost:8085 will now be reachable at http://localhost:8085/bamboo.
  5. Once Bamboo has started, go to the administration area and click General Configuration (under 'System'). Add the new context path to your base URL: 

    https://my-bamboo-hostname:8085/bamboo
  6. Click Save.

Bamboo + Apache

Note that if you are running Bamboo behind Apache:

  • You will need to make sure that the host or context path that Bamboo is exposed on is not also being used by another web application that is listening on a different port.
  • If you have updated the Bamboo context path using the steps outlined above, you will need to update your Apache configuration, as described in Integrating Bamboo with Apache HTTP Server.
Last modified on Dec 15, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.