lighttpd, apache 2 and rails
Posted by dom on Fri Jan 20 11:55:07 +0100 2006James Duncan Davidson has written about Reverse Proxying SSL Connections To Rails and identified one problem we ran over too. Actually I have a different solution for the simple case in which everything should be https. Just put this code in your environment.rb after the requirement of boot:
#https patch
class ActionController::AbstractRequest
def protocol
'https://'
end
end
class ActionController::AbstractRequest
def protocol
'https://'
end
end
Moreover in such a setup make sure that you are running an apache 2.2, because there is a nasty bug in the mod_proxy with 2.0.55 that totally screws up data when used in conjunction with https. Bug 37145


