I have posted this question as comment on github (https://github.com/kaltura/server/issues/1935), but I would like to ask more questions regarding SSL in cluster.
Which SSL method is best for kaltura? Is it using SSL termination or SSL passthrough?
I tried using SSL termination, all the cluster member run in HTTP mode, but got KMC flash problem when browser requested a javascript which has URL like (I don’t remember the exact URL) “http://mydomain.local:80/lib/js/swfObject.js”.
Which in turn causing error if using SSL, it called ‘mixed content’.
I also tried to auto redirect HTTP URL to HTTPS in loadbalancer (haproxy), but it created another problem because the URL of that javascript request contains ‘:80’, which result in “https://mydomain.local:80/lib/js/swfObject.js” (invalid URL).
Meanwhile if using SSL passthrough, I got problem passing the request hostname to cluster’s front node virtual host.
The recommended setup is an LB working over SSL and then offloading to machines using HTTP.
Can you please provide the exact request that caused an issue so we can check?
Another problem is when accessing KMC from main page (not from admin console), I got this error on page other than the above error:
SyntaxError: expected expression, got ‘<’ kmc1:572:3
Please advise how to overcome the non-HTTPS external resources problem, because there are many other external resources which use non-HTTPS requested by Kaltura which lead to ‘mixed content’ error on browser.
For the mixed content, please submit a full list of resources so we can correct it or better still, if you can fix it and submit a pull request to https://github.com/kaltura/server that would be even nicer:)
As for KMC, can you please check /opt/kaltura/log/* for errors?
You can use the kaltlog alias from the shell, just run kaltlog while making the request and take a look at the output/
Hello,
Thanks to David Bezemer and you for the fix.
Unfortunately now it shows blank page (no content at all).
Error in kaltlog:
PHP Parse error: syntax error, unexpected $end in /opt/kaltura/app/alpha/apps/kaltura/modules/kmc/templates/kmc1Success.php on line 1101, referer: https://kaltura.mydomain.local/kmc
I’m not sure why this error occured because line 1101 is not exist at all (it’s end of file)
I’m wondering why other people not experiencing same issue. Meanwhile this kmc1Success.php is important to load the KMC portal page. Is there any other way to switch or not using km11Success.php?