Making ZM use HTTPS

Forum for questions and support relating to the 1.28.x releases only.
Locked
Zmjm15
Posts: 90
Joined: Fri Jul 31, 2015 7:56 pm

Making ZM use HTTPS

Post by Zmjm15 »

Hi guys,

Just wondered if anyone knew how to implement HTTPS into the web interface?

Also, if you need to port forward 8080 as well?

Many thanks
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Making ZM use HTTPS

Post by knight-of-ni »

Sure.
In the simplest case, all you have to do is install the ssl module for your web server and then point your web browser to https.

However, there are other things you may want to do:
- Generate your own certificate (Google for this)
- Add the SSLRequireSSL Apache directive to your site to prevent non-SSL access
- Use Apache RewriteRule to auto-redirect HTTP to HTTPS

And no you don't need to forward port 8080. Apache listens on Port 443 for HTTPS.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
undert0wn
Posts: 2
Joined: Sun May 06, 2018 2:45 pm

Re: Making ZM use HTTPS

Post by undert0wn »

This took me a while to work out but THIS digitalocean walkthrough on SSL certs and redirection was exactly what I needed to point my http://FQDN to https://FQDN/zm (or http://IP to https://IP/zm if you don't have a LOCAL_DNS running).

Under the "Modify the Default Apache SSL Virtual Host File" section, the only change I made was:
ServerName server_domain_or_IP to ServerName server_domain_or_IP/zm

Hope this helps.
Locked