RailsCasts Pro episodes are now free!

Learn more or hide this

sachinga's Profile

GitHub User: sachinga

Comments by


nevermind, mistake on my end in following the pattern suggested. thanks


Hi Ryan,

I am using this pattern to do the appropriate redirects to http if my controller and action doesn't need to be secure.

However, I am hitting this error - Filter chain halted as :https_redirect rendered or redirected

I am using apache and seems like something fairly basic I am missing.

ServerName XXXX
ProxyRequests Off
ProxyPreserveHost On
ProxyPassReverse / http://www.XXX.com/

RewriteEngine On
RewriteRule ^(.*) - [E=CLIENT_IP:%{REMOTE_ADDR},L]
RequestHeader set X-Forwarded-For %{CLIENT_IP}e
RequestHeader set X-Forwarded-Proto "https"

if i disable the filter, https works just fine.

any pointers on what may be wrong?