Hi, We are trying to get bamboo to integrate in behind Apache using mod_proxy similar to how we did this for Jira and Confluence.
We updated our wrapper.conf and jetty.xml according to the confluence doc
http://confluence.atlassian.com/display/BAMBOO/Getting+Bamboo+Standalone+to+use+the+jetty.xml+file
Here are the parts of the wrapper.conf (used to run under http://machinename:8084)
# commenting out the parameter below to use the jetty.xml file instead llyons
# discussed in http://confluence.atlassian.com/display/BAMBOO/Getting+Bamboo+Standalone+to+use+the+jetty.xml+file
#wrapper.app.parameter.2=8084
wrapper.app.parameter.2=../webapp/WEB-INF/classes/jetty.xml
# The location of the Bamboo web application files
#
# commenting out the parameter below to use the jetty.xml file instead llyons
#wrapper.app.parameter.3=../webapp
# The webapp context path. Which must be of form / or /your-context
#
# commenting out the parameter below to use the jetty.xml file instead llyons
#wrapper.app.parameter.4=/
Here is our Jetty.xml (at least the important parts)
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host"><Property name="jetty.host" /></Set>
<Set name="port"><Property name="jetty.port" default="8084"/></Set>
<!--<Set name="Host">127.0.0.1</Set>-->
<!--<Set name="ConfidentialPort">8443</Set>-->
<!--<Set name="IntegralPort">8443</Set>-->
</New>
</Arg>
</Call>
<Call name="setHandler">
<Arg>
<New class="org.eclipse.jetty.webapp.WebAppContext">
<Arg name="webApp">
<!--SystemProperty name="bamboo.webapp" default="/opt/dev/src/atlassian/bamboo-trunk/components/bamboo-web-app/src/main/webapp"/-->
<SystemProperty name="bamboo.webapp" default="./webapp"/>
</Arg>
<Arg name="contextPath">/bamboo</Arg>
<!--<Set name="parentLoaderPriority">true</Set>-->
<Set name="defaultsDescriptor">webdefault.xml</Set>
<Get name="sessionHandler">
<Set name="sessionManager">
<New class="org.eclipse.jetty.server.session.HashSessionManager">
<Set name="httpOnly">true</Set> <!-- use M$ http only cookies? -->
</New>
</Set>
</Get>
</New>
</Arg>
</Call>
and for the AJP connector
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.ajp.Ajp13SocketConnector">
<Set name="port">8029</Set>
</New>
</Arg>
</Call>
From the apache site configuration.
<VirtualHost *:80>
ServerName bamboo.onlifehealth.com
Redirect / https://bamboo.onlifehealth.com/
</VirtualHost>
and
<VirtualHost *:443>
ServerName bamboo.onlifehealth.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
SSLEngine On
SSLCertificateFile "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/ssl/bamboo.cert"
SSLCertificateKeyFile "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/ssl/bamboo.key"
ProxyPass / ajp://corp-jiraweb:8029/
ProxyPassReverse / ajp://corp-jiraweb:8029/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
I have the AJP addConnector commented out in the jetty.xml just to verify that http://machinename:8084 still works but it does not.
I get
HTTP ERROR: 503
Problem accessing /. Reason:
Service Unavailable
<small>Powered by Jetty://</small>
We are using the following Jetty jar file jetty-ajp-6.1.15.jar which DOES not match the version we have in the lib folder for the other jetty files (jetty-jndi-7.2.1.v20101111.jar, etc)
I cant find any log files in the either of the log file folders (bamboo-home\logs) or \program files\bamboo\logs
We used
Any thoughts or things I should look at?
Thanks
Lance