title: Apache ProxyPassReverseCookiePath does not work on second application instance
body: <p>I have two equal web app instances in Tomcat which are made available by Apache's Reverse Proxy. The first one works just fine but the second one has a problem with getting data from the session (null pointer exception). The ProxyPassReverseCookiePath is apparently configured wrong.</p>
  
  <p>Here is my configuration:</p>
  
  <pre><code>&lt;IfModule proxy_module&gt;
  &lt;IfModule proxy_http_module&gt;
  
  #
  # Reverse Proxy
  #
  ProxyRequests Off
  
  &lt;Proxy *&gt;
      Order deny,allow
      Allow from all
  &lt;/Proxy&gt;
  
  ProxyPass /app1/ http://localhost:8080/localapp1/
  ProxyPassReverse /app1/ http://localhost:8080/localapp1/
  ProxyPassReverseCookiePath /localapp1 /app1/
  
  
  ProxyPass /app2 http://localhost:8080/app2
  ProxyPassReverse /localapp2 http://localhost:8080/app2
  ProxyPassReverseCookiePath /app2 /app2
  
  
  &lt;Location /app1/ &gt;
  RequestHeader edit X-GWT-Module-Base ^(.*)/app1/(.*)$ $1/localapp1/$2
  &lt;/Location&gt;
  
  
  &lt;Location /app2 &gt;
  RequestHeader edit X-GWT-Module-Base ^(.*)/app2(.*)$ $1/app2$2
  &lt;/Location&gt;
  
  &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I wanted for the second one to be accesible without the need of a slash ("/") at the end of the URL. I really can't figure out what is wrong here, hope someone can help.</p>