Redirected to http but Location is httpS

Rails properly recognizes https requests (request.ssl? == true) and
ssl_requirement properly calls redirect_to ‘http’ + …

In production.log I have:
“Redirected to

But in the HTTP response header there is:

…why? Any ideas?

The end result is endless redirect.

I have this exact same problem…redirecting from http to https works
fine, but I can’t get back to http. The logs show the app correctly
redirecting to http but in fact it ends up hitting https…I am using
pound set up this way:

HeadRemove “X-SSL-."
AddHeader “X-SSL-Request: 1”
HeadRemove "X-Client-Verify.

HeadRemove “X-Forwarded-Proto”
AddHeader “X-Forwarded-Proto: https”

Did you ever find a solution to this problem?

On Feb 27 2008, 10:20 pm, Piotr W. <ruby-forum-incom…@andreas-