Zoneminder reverse SSL proxy with apache
Posted: 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!
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!