# problem with http -\> https redirect

**URL:** <https://discuss.rubyonrails.org/t/problem-with-http-https-redirect/14515>\
**Category:** rubyonrails-talk\
**Created:** [June 17, 2007, 9:40pm UTC](https://discuss.rubyonrails.org/t/problem-with-http-https-redirect/14515 "2007-06-17T21:40:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlie\_caroff](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@charlie\_caroff](https://discuss.rubyonrails.org/u/charlie_caroff)\
**Post date:** [June 17, 2007, 9:40pm UTC](https://discuss.rubyonrails.org/t/problem-with-http-https-redirect/14515/1 "2007-06-17T21:40:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Benjamin\_Curtis1](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@Benjamin\_Curtis1](https://discuss.rubyonrails.org/u/Benjamin_Curtis1)\
**Post date:** [June 18, 2007, 1:12pm UTC](https://discuss.rubyonrails.org/t/problem-with-http-https-redirect/14515/2 "2007-06-18T13:12:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![charlie\_caroff](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@charlie\_caroff](https://discuss.rubyonrails.org/u/charlie_caroff)\
**Post date:** [June 18, 2007, 4:04pm UTC](https://discuss.rubyonrails.org/t/problem-with-http-https-redirect/14515/3 "2007-06-18T16:04:05Z")

</div>

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
