• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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 (http://docs.codehaus.org/display/JETTY/Configuring+mod_proxy)

Do you pee on your compost? Does this tiny ad?
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic