Loss of sessions - Mongrel/Apache/SSL

Hello fellow Railsers,

I am running a fairly standard Apache2.2 - Mongrel setup. I have a
bunch of
Mongrels on my application server, and then a seperate Apache server
uses mod_ssl and mod_proxy_balancer to transform incoming SSL requests,
load balance them across the seperate Mongrel instances. Both my apache
server and my application server are on the same subnet.

When I browse to my site from anywhere within the same subnet, or
through a
simple firewall on my top level domain, everything is fine. Apache does
it’s SSL decryption, the Mongrel’s pick up the requests, and my
works like a smooth ice-cream.

When I move outside my own network and bring the Internet in the way, I
an error. I lose session information mid-way through using my
and this causes it to ‘fail’. It is as if the session information
black, with calles to “session[:my_object]” returning null. I use
out-of-the-box RoR file-based sessions. This loss of session
only seems to happen to some of the more complicated session objects (it
does not happen to the user login information for example). It also
happens when I use the full Internet → Apache → Mongrel stack. If I
navigate straight to one of my Mongrel instances from the Internet, then
session information remains.

Can anyone suggest what I am doing wrong here? I suspect it is
to do with my Apache conf. on either SSL or the balancer, but I’m not
I’ve checked the forums, and while lots of people have their own session
demons, none seem to match mine.

My two next avenues of investigation will be to remove SSL and just use
Apache for basic balancing, and also to try using memcached. Other
suggestions of inquiry are also welcome.


View this message in context:
Sent from the RubyOnRails Users mailing list archive at Nabble.com.