Re: request.ssl? not working

Ben Johnson
Sun, 02 Sep 2007 20:55:27 -0000

Rodrigo Urubatan Ferreira Jardim wrote:
> the problem  is that the SSL request arrives to the apache server, and
> not to
> the mongrel server ...
> the connection between apache and mongrel is not a SSL request ...
>
> On Sunday 02 September 2007 17:16:56 Ben Johnson wrote:
>> mongrel. So nothing out of the ordinary. Do I need to turn on some
>> options or something?
>
>
>
> --
> Rodrigo Urubatan Ferreira Jardim
> rodrigo-nmTMUhUik5w39yzSjRtAkw@public.gmane.org
> http://www.urubatan.com.br
> http://www.techoffice.com.br

I think I found a solution. In my virtual host for my ssl connection I
put:

RequestHeader set X_FORWARDED_PROTO ''https''

This way the ssl? method works fine in rails. Kind of feels like a hack,
but not really.