software, business, and fun
cambodia

Apache2 SSL with mongrel/rails

The ssl setup is as expected with Apache, but we had to add

RequestHeader set X_FORWARDED_PROTO 'https'

into the conf so mongrel is aware the connection came in over SLL. Otherwise my SslRequired actions were redirected forever since the request was SSL in apache, but not to mongrel eyes.

http://blog.innerewut.de/2006/06/21/mongrel-and-rails-behind-apache-2-2-and-ssl

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment