Hi, 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 production.log: Filter chain halted as [#<ActionController::Filters::ClassMethods::SymbolFilter:0x9be6050 @filter=:ensure_proper_protocol>] returned false Any ideas? Charlie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 http://www.bencurtis.com/ -- blog http://agilewebdevelopment.com/rails-ecommerce -- build e-commerce sites with Rails On Jun 17, 2007, at 2:40 PM, charlie caroff wrote:> > Hi, > > 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 > production.log: > > Filter chain halted as > [#<ActionController::Filters::ClassMethods::SymbolFilter:0x9be6050 > @filter=:ensure_proper_protocol>] returned false > > Any ideas? > > Charlie > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 controllers. 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. Charlie On Jun 18, 6:12 am, Benjamin Curtis <r...-4dtGyw5agdmakBO8gow8eQ@public.gmane.org> wrote:> 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 Curtishttp://www.bencurtis.com/-- bloghttp://agilewebdevelopment.com/rails-ecommerce-- build e-commerce > sites with Rails > > On Jun 17, 2007, at 2:40 PM,charlie caroffwrote: > > > > > Hi, > > > 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 > > production.log: > > > Filter chain halted as > > [#<ActionController::Filters::ClassMethods::SymbolFilter:0x9be6050 > > @filter=:ensure_proper_protocol>] returned false > > > Any ideas? > > > Charlie--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---