Zoneminder reverse SSL proxy with apache

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
allanon
Posts: 9
Joined: Thu Jan 17, 2019 7:50 pm

Zoneminder reverse SSL proxy with apache

Post by allanon » Tue Mar 12, 2019 8:17 pm

I'm using ZoneMinder 1.32.3 and apache. I'm trying to setup a reverse SSL proxy on apache. I've got the part of it working.
I can get zm.mydomain.com to go to mydomain.com/zm but I don't see any images from the cameras. All I get is a broken image link.
If I try mydomain.com/zm it works fine. Eventually I only want zm.mydomain.com to work. I want to disable mydomain.com/zm.

My virtual host for apache looks like this:

<VirtualHost *:443>
ServerName zm.mydomain.com
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests On
ProxyPreserveHost On
ProxyPass /zm/ http://192.168.0.20/zm/
ProxyPassReverse /zm/ http://192.168.0.20/zm/
ProxyPass / http://192.168.0.20/zm/
ProxyPassReverse / http://192.168.0.20/zm/
</VirtualHost>

Any ideas on how to fix this?
Thanks!

janu75
Posts: 1
Joined: Thu May 02, 2019 8:25 am

Re: Zoneminder reverse SSL proxy with apache

Post by janu75 » Thu May 02, 2019 8:41 am

Hi

I think I have the same issue:
- ZoneMinder 1.32.3 (docker image quantumobject/docker-zoneminder) exposing port 3080
- Apache2 reverse proxy (on server) server.local:3080 to https://zm.server.localdomain.net
- Nginx reverse proxy (on webproxy) https://zm.server.localdomain.net to https://zm.outsidedomain.net

Access to zoneminder via https://zm.outsidedomain.net/zm works fine, not problems with certificates, etc.

However, I cannot get any video data (live video). The browser debugger tells me, that all video streams are still being queried from server.local:3080

http://server.local:3080/zm/cgi-bin/nph ... 1556785350

Did anybody find a solution to these kind of issues?

Thanks,
Jan

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests