Forum: Ruby on Rails problem with http -> https redirect

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
861b0f573f69e2d9e834a3e75c8df408?d=identicon&s=25 charlie caroff (Guest)
on 2007-06-17 23:41
(Received via mailing list)

I have ssl working on my server.  When I set all my views to
ssl_allowed in my controller, I can switch the http to https in my
address line, and every page works right.

But when I set all my views to ssl_required, my page goes into an
endless redirect, with this message scrolling through the

Filter chain halted as
@filter=:ensure_proper_protocol>] returned false

Any ideas?

Db303dc84d03a992b33cd3ac978f89ae?d=identicon&s=25 Benjamin Curtis (Guest)
on 2007-06-18 15:14
(Received via mailing list)
What web server are you using?  It's possible that the headers Rails
uses to determine that a request is SSL are not being set.

Benjamin Curtis -- blog -- build e-commerce
sites with Rails
861b0f573f69e2d9e834a3e75c8df408?d=identicon&s=25 charlie caroff (Guest)
on 2007-06-18 18:05
(Received via mailing list)
I'm using Apache 2.2, and I have it working ok now.  The problem was
that I did not have ssl_required for all the actions in one of my

What happened was that one of the important actions was not under ssl,
and I guess in that case the application keeps trying to redirect to
ssl, but it keeps failing.

Ok for now.  Thanks for the response.

This topic is locked and can not be replied to.