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
Making ZM use HTTPS
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Making ZM use HTTPS
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.
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/
All of these can be found at https://zoneminder.blogspot.com/
Re: Making ZM use HTTPS
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.
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.