Bamboo 3.4 : Changing the Root Context Path

When running Bamboo behind a proxy, you might need to change the Root Context Path i.e. the host URL referenced while accessing Bamboo (e.g. http://localhost:8085/bamboo).

To change the context path from '/' to '/Your_Context_Path':

  • If you are using the bamboo.sh script to start Bamboo:

    Change the following line in your bamboo.sh script:
    RUN_CMD="java -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -classpath $CLASSPATH -Dorg.mortbay.xml.XmlParser.NotValidating=true -Djetty.port=8085
    com.atlassian.bamboo.server.Server 8085 ./webapp /"
    to:
    RUN_CMD="java -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -classpath $CLASSPATH -Dorg.mortbay.xml.XmlParser.NotValidating=true -Djetty.port=8085
    com.atlassian.bamboo.server.Server 8085 ./webapp /Your_Context_Path"

  • Or, if you are using the wrapper to start Bamboo:

    The wrapper reads the configuration information from the wrapper.conf file in theĀ  ../<Bamboo-Install>/conf/ folder. Find the following line:
    wrapper.app.parameter.4=/
    and replace it with the following line:
    wrapper.app.parameter.4=/Your_Context_Path