Today I was trying to setup a site behind an Elastic Load Balancer (ELB) on Amazon's EC2. I was able to set the configuration array to on in settings.php:
$conf['reverse_proxy'] = TRUE;
However, ELB's within AWS are setup to auto scale, which in turn can make their IP addresses change.