Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Session problems when proxying to Jetty from Apache

Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello to all,

I have a Jetty server running a simple J2EE application on port 8085. In Apache I have a RewriteRule which simply proxies to the Jetty server when given a certain URL pattern. See an
example below of my Apache virtual host:

The RewriteRule seems to be working ok and it takes the user to the Jetty app. The Jetty app has a logon admin screen. Most of the time, when the user has logged onto the admin screen
and tries to perform an action, the app redirects the user to the logon screenagain. When the user logs in again the app then redirects them to the originally intended url.

The app uses Spring MVC and Acegi security. I know that the problem is session related. Furthermore, if I use the app without via Apache e.g. http://localhost:8085/MyApp it works fine
without any problems. So it seems like the sessions are nto being maintained properly. Any ideas? I'm beginning to think that maybe I should be using mod_proxy (

Won't you be my neighbor? - Fred Rogers. tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic