nginx https proxypass for php apps

Comments

Drupal 6 has this support

Drupal 6 has this support built in. Basically, you put another conf in settings.php:-


$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array('127.0.0.1');

This would force Drupal to check additional headers X-Forwarded-For to get the IP address. The second settings would make sure that it only check the headers if it come from the specified host(s).