Making ZM use HTTPS

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

Making ZM use HTTPS

Post by Zmjm15 » Thu Aug 20, 2015 6:29 pm

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: 2115
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Making ZM use HTTPS

Post by knight-of-ni » Thu Aug 20, 2015 6:46 pm

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 » Sun May 06, 2018 3:27 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests