As we know, Jetty supports the use of a front-end HTTP server such as
Apache as a front-end server. Here's a short walkthrough for
configuring a Jetty (Ready2Run Jetty+OpenBD) with a Apache 2.2 front-
end using AJP13. For more information see the original guide on Jetty
website.

1.  Open your jetty.xml. Edit it. Replace the following:

    <Call name="addConnector">
      <Arg>
                <New class="org.mortbay.jetty.nio.SelectChannelConnector">
                        <Set name="host"><SystemProperty name="jetty.host" 
/></Set>
                        <Set name="port"><SystemProperty name="jetty.port" 
default="8080"/
></Set>
                        <Set name="maxIdleTime">30000</Set>
                        <Set name="Acceptors">2</Set>
                        <Set name="statsOn">false</Set>
                        <Set name="confidentialPort">8443</Set>
                        <Set name="lowResourcesConnections">5000</Set>
                        <Set name="lowResourcesMaxIdleTime">5000</Set>
                </New>
      </Arg>
    </Call>

    With the following:

   <Call name="addConnector">
      <Arg>
        <New class="org.mortbay.jetty.ajp.Ajp13SocketConnector">
          <Set name="host">127.0.0.1</Set>
          <Set name="port">8009</Set>
        </New>
      </Arg>
  </Call>

2. Open your http.conf, and add this:

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so (on Windows)
ProxyPass / ajp://127.0.0.1:8009/
ProxyPreserveHost On

3. Run your  Jetty+OpenBD, and restart your Apache server. Now, you
can run and browse your web apps from Apache port (80) as front end,
not Jetty port (8080).

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to