server behind SSL proxy
Posted: Sat Jul 19, 2014 7:17 pm
Hi,
I have a setup where the ZoneMinder server is located in internal network behind a terminating SSL proxy.
In order to access the server, I needed to change a line in index.php:
to:
Now I'm able to access site from internet with SSL and internal network without SSL.
Is there a reason to hardcode the ZM_BASE_URL in PHP code?
--
Jukka
I have a setup where the ZoneMinder server is located in internal network behind a terminating SSL proxy.
In order to access the server, I needed to change a line in index.php:
Code: Select all
define( "ZM_BASE_URL", $protocol.'://'.$_SERVER['HTTP_HOST'] );
Code: Select all
define( "ZM_BASE_URL", "" );
Is there a reason to hardcode the ZM_BASE_URL in PHP code?
--
Jukka