https://zm.mydomain.com
I see the default Apache Ubuntu page but if I go to
https://zm.mydomain.com/zm
The URL is replaced with the ip address of the system on the lan and is not https any more either.
I am thinking that this has to be something in the apache setting on the zoneminder system since I can get to the default page OK.
I have done a lot of googling around but there are no keywords that seem to fit my issue. It looks like there was something like this years ago in index.php and ZM_BASE_URL but that is commented out now.
This has to be something really simple but I am stumped.
Here is the configuration that I have in Nginx. Note that <zm lan ip address> is the ip address of the zm machine on my lan.
Code: Select all
server {
server_name zm.mydomain.com;
location / {
proxy_set_header Host $host;
proxy_pass http://<zm lan ip address>;
}
ssl on;
keepalive_timeout 60;
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/zm.mydomain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/zm.mydomain.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}