Appending:
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on'; /* define('CONCATENATE_SCRIPTS', false ); */