My rails app can not tell if it is on an SSL connection or not. I am
using https:// as my protocol and then we I inspect request.ssl? it
returns false. Any ideas why it would be doing this?
You need to check that your webserver is making use of a specific
environment variable that the request.ssl? makes use of
Ben J. wrote:
My rails app can not tell if it is on an SSL connection or not. I am
using https:// as my protocol and then we I inspect request.ssl? it
returns false. Any ideas why it would be doing this?
Scott A s wrote:
You need to check that your webserver is making use of a specific
environment variable that the request.ssl? makes use ofBen J. wrote:
My rails app can not tell if it is on an SSL connection or not. I am
using https:// as my protocol and then we I inspect request.ssl? it
returns false. Any ideas why it would be doing this?
I’m u sing the latest apache with the mod_proxy_balancer and then
mongrel. So nothing out of the ordinary. Do I need to turn on some
options or something?
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 J. wrote:
mongrel. So nothing out of the ordinary. Do I need to turn on some
options or something?
–
Rodrigo Urubatan Ferreira Jardim
[email protected]
http://www.urubatan.com.br
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 J. wrote:
mongrel. So nothing out of the ordinary. Do I need to turn on some
options or something?–
Rodrigo Urubatan Ferreira Jardim
[email protected]
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.