Documentation for Bamboo 4.2.x. Documentation for other versions of Bamboo is available too.

(info) These instructions apply to the Bamboo distribution (not EAR-WAR), which ships with the Jetty application server.

 
If you have installed Bamboo on a machine with multiple interfaces, and need to bind Bamboo to a single IP address, follow these instructions.

Step 1 — Instruct Bamboo to read its configuration from the jetty.xml file

By default Bamboo doesn't use the jetty.xml file to configure itself. You will need to tell Bamboo to use it.

Step 2 — Edit the Jetty.xml file 

Your jetty.xml file is located in <Bamboo_Install_directory>/webapp/WEB-INF/classes/jetty.xml.
Please note: YOUR_HOST_URL should be the same as the Bamboo base URL configured in Bamboo.

If you are using Bamboo 1.2.4:

Find the following section:

<Call name="addListener">
        <Arg>
            <New class="org.mortbay.http.SocketListener">
                <Set name="Port">
                    <SystemProperty name="jetty.port" default="8085"/>
                </Set>
                <Set name="Host">127.0.0.1</Set>

Change the last line as follows:

<Call name="addListener">
        <Arg>
            <New class="org.mortbay.http.SocketListener">
                <Set name="Port">
                    <SystemProperty name="jetty.port" default="8085"/>
                </Set>
                <Set name="Host">YOUR_HOST_URL</Set>

 

If you are using Bamboo 2.0

Find the following section:

 <Call name="addConnector">
    <Arg>
      <New class="org.mortbay.jetty.bio.SocketConnector">
        <Set name="Port">
          <SystemProperty name="jetty.port" default="8085"/>
        </Set>
        <!--<Set name="Host">127.0.0.1</Set>-->

Uncomment the host property as follows:

 <Call name="addConnector">
    <Arg>
      <New class="org.mortbay.jetty.bio.SocketConnector">
        <Set name="Port">
          <SystemProperty name="jetty.port" default="8085"/>
        </Set>
        <Set name="Host">YOUR_HOST_URL</Set>

 

Step 3 — Restart Bamboo

If you have any elastic agents running, ensure that they are shut down before you restart the Bamboo server. If you do not shut down your elastic instances before restarting, they will continue to run and become orphaned from your Bamboo server.

  • No labels