mod_proxy_balancer + SSL

SSL Requirements

In order for mongrel to know that this request has a forwarded protocol of https, we窶冤l need to add a special header (hence the addition of mod_header, included in most apache2 builds).

Include /etc/httpd/conf.d/myapp.common

# This is required to convince Rails (via mod_proxy_balancer) that we're
# actually using HTTPS.
RequestHeader set X_FORWARDED_PROTO 'https'

以前にもこれを忘れて探し回り、また忘れたのでメモしておきます。
mod_proxy_balancerでフォワードする際に、httpsでの通信であることを示すヘッダーをくっつけておくと、railsでrequest.ssl? がちゃんと動きます。