Page 1 of 1

server behind SSL proxy

Posted: Sat Jul 19, 2014 7:17 pm
by jka
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:

Code: Select all

define( "ZM_BASE_URL", $protocol.'://'.$_SERVER['HTTP_HOST'] );
to:

Code: Select all

define( "ZM_BASE_URL", "" );
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

Re: server behind SSL proxy

Posted: Sat Jul 19, 2014 7:22 pm
by DALDON
PLEASE give me a how-to step by step instruction for you setup with SSL proxy. Do you use nginx or apache as a reverse proxy? I'll very glad to see an instruction for this with conf files.

THANK.

Re: server behind SSL proxy

Posted: Sat Aug 20, 2016 12:04 pm
by Whatsername
Can you help me with setup proxy? I already use proxy advanced.name.