Using Jetty with an Apache mod_proxy load balancer
Create an additional configuration file with the content given below in Jettys etc/ directory and add its name to the startup command line. Change the value HOSTIDENTIFIER to match your Apache load balancer configuration (the value 'route' in the definition of the load balancer cluster) <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Get name="sessionHandler">
<Get name="sessionManager">
<Call name="setIdManager">
<Arg>
<New class="org.mortbay.jetty.servlet.HashSessionIdManager">
<Set name="WorkerName">HOSTIDENTIFIER</Set>
</New>
</Arg>
</Call>
</Get>
</Get>
</Configure>