« Music: Linda Perry - In Flight |  main  | SubEthaEdit 2.3 and BugShelf »

lighttpd, apache 2 and rails

Posted by dom on Fri Jan 20 11:55:07 +0100 2006

James 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

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

no responses to 'lighttpd, apache 2 and rails'

write a comment.... (textile enabled)