BSP-261 - Redirecting Apache by setting the Bamboo context path.

Product: Bamboo

Environment

Operating System  
Affect Version/s 1.2.2
JVM  
Database  
Application Server  

Error Message

If in case you need to connect Bamboo over port 80, and have a url that makes more sense for them, e.g. http://projectserver/bamboo

Bamboo will load fine but due to difference in context paths, the style sheets/images and other resources will not be downloaded - as a result the Bamboo page will load with plain text and html links

Symptom

Users wont be able to navigate to other parts of Bamboo.

Diagnostics/Test

Root Cause

Bamboo will load fine but due to difference in context paths, the style sheets/images and other resources will not be downloaded - as a result the Bamboo page will load with plain text and html links

Solution

Change the context path in Bamboo, from "/" to "/Your_Context_Path"

!) If you are using the bamboo.sh to start bamboo, change the context path from '/' to '/Your_Context_Path'. To do this;

Change the following line in you 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"

2) Or else, if using the wrapper to start Bamboo.
The wrappers read the configuration information from the wrapper.conf file in ../<Bamboo-Install>/conf/ folder. Find the following line

# The webapp context path. Which must be of form / or /your-context
#
wrapper.app.parameter.4=/

Replace the line with

# The webapp context path. Which must be of form / or /your-context
#
wrapper.app.parameter.4=/Your_Context_Path

Note: You need to substitute Your_Context_Path with the relevant context path and you need to restart Bamboo for changes to take effect.

Labels

bamboo bamboo Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.