Hi @bkelm,
Did you verify that the X_FORWARDED_PROTO
header is correctly set by the LB?
If you’ll look at /opt/kaltura/app/alpha/apps/kaltura/templates/kmclayout.php, you’ll see:
<script type="text/javascript" src="<?php echo requestUtils::getCdnHost( requestUtils::getRequestProtocol() ); ?>/lib/js/swfobject_v2.2.js"></script>
requestUtils::getRequestProtocol()
is defined in /opt/kaltura/app/alpha/apps/kaltura/lib/requestUtils.class.php:
public static function getRequestProtocol()
{
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? "https" : "http";
return $protocol;
}
The HTTPS
header should be set to “on” in the event X_FORWARDED_PROTO
is set. That’s because of this config in /opt/kaltura/app/configurations/apache/kaltura.conf:
# for SSL offloading support, if LB has X_FORWARDED_PROTO set to 'https', set HTTPS to 'on'
SetEnvIf X-Forwarded-Proto https HTTPS=on
You didn’t specify what Kaltura CE version you are using, if it is very old, perhaps you are missing that SetEnvIf
directive, in which case, you should add it and reload Apache.