Subject: HTTPS through reverse proxy
Hi,
I have a reverse proxy for https in front of my UNB installation. Since the header $_SERVER['HTTPS'] is not set, UNB returns http:// urls, instead of https://
Replacing
Would it be better to manipulate the $_SERVER['HTTPS'] variable in one of the include files with
If it possible to include that enhancement in one of the further releases?
nico
I have a reverse proxy for https in front of my UNB installation. Since the header $_SERVER['HTTPS'] is not set, UNB returns http:// urls, instead of https://
Replacing
if ($_SERVER['HTTPS'] == 'on')
with if ($_SERVER['HTTPS'] == 'on' or $_SERVER['HTTP_X_FORWARDED_PROTO']=='https')
in unb_lib/common_out.lib.php solves that problem.Would it be better to manipulate the $_SERVER['HTTPS'] variable in one of the include files with
if ($_SERVER['HTTP_X_FORWARDED_PROTO']=='https') $_SERVER['HTTPS'] == 'on';
?If it possible to include that enhancement in one of the further releases?
nico

nicoduck
Show profile
Link to this post