[Mongrel] X_FORWARDED_PROTO issues

Michael Engelhart mike.engelhart at gmail.com
Wed Apr 2 11:14:59 EDT 2008

Hi all -

I'm having some behavior that i can't track down and I'm not sure if
this is an Apache problem, a mongrel problem or neither.

Anyway - in my production setting I have two Apache 2.2 proxy servers
pointing to two servers running mongrel instances.

In my SSL.conf file I have this:

RequestHeader set X_FORWARDED_PROTO 'https'

It seems that if I reboot apache or reboot the mongrel instances
without rebooting both in sequence that this proto value gets
corrupted and request.ssl? in rails stops working properly.   It's as
if request.ssl? is coming in incorrectly.

Just wondering if anyone has seen this behavior before.


More information about the Mongrel-users mailing list