server behind SSL proxy

Forum for questions and support relating to the 1.27.x releases only.
Locked
jka
Posts: 1
Joined: Sat Jul 19, 2014 7:04 pm

server behind SSL proxy

Post 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
DALDON
Posts: 20
Joined: Wed Jul 16, 2014 5:35 pm

Re: server behind SSL proxy

Post 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.
Whatsername
Posts: 1
Joined: Sat Aug 20, 2016 12:02 pm

Re: server behind SSL proxy

Post by Whatsername »

Can you help me with setup proxy? I already use proxy advanced.name.
Locked