Page 2 of 2

Posted: Sat Aug 18, 2007 10:51 pm
by jameswilson
stills work so im thinking its something in the applet that stopping it, does mpeg work?

Posted: Fri Aug 31, 2007 9:58 am
by adeb
Just to let you know:
I run ZM with a reverse Apache proxy without any problems.

These are the relevant config options:

<IfModule mod_proxy.c>
ProxyRequests Off
ProxyVia On
</IfModule>

ProxyPass /zm http://172.31.0.6/zm
ProxyPassReverse /zm http://172.31.0.6/zm

I dont use any authentication.
The ZM server and the reverse proxy are located behind different NAT's on the internet.

Posted: Thu Sep 13, 2007 4:33 pm
by mycal
Wouldn't it be easier to just use the Yoics software for remote access?

I've started using it on all my customers boxes since I don't have to modify there firewalls, and in some cases I cannot port forward at all.

Its not 100% depending on the firewalls at each side of the connection, but it has worked for me 7 out of 8 installs I've used it on including a remote internet sat connection that didn't even provide real IP addresses to the customer.

-M

PS if anyone wants to check it out PM me and I'll let you access one of my zoneminder boxes.

Posted: Thu Sep 13, 2007 6:40 pm
by adeb
I am not familiar with Yoics software, in my case OpenVPN works very good and after reading the manual its not that hard to implement.

I recently added apache's basic authentication with the following extra apache config directives:

<Proxy *>
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /var/lib/zoneminder/passwords
Require user user1 user2
</Proxy>

Posted: Fri Sep 14, 2007 7:22 am
by adeb
Another additional note:
Enabling zm's builtin authentication gives me the same problems as mentioned by gommo, everything works accept streaming video.

Posted: Tue Oct 23, 2007 7:28 am
by marshn
I have been using apache2 to relay requests to a dedicated zoneminder server.

Initially everything worked, except for the streaming using the Cambozola applet. I think that this was because the applet and the stream appeared to coming from different addresses. The get the streaming going I found that I had to add this line to the setup :

ProxyPreserveHost On

This means that the apache setup was :

----------------------------------------------------------
<VirtualHost *>
ServerName cctv.company.co.uk
ServerAlias cctv.company.co.uk www.cctv.company.co.uk
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.0.253/
ProxyPassReverse / http://192.168.0.253/
ProxyPreserveHost On
</VirtualHost>
----------------------------------------------------------
Where cctv.company.co.uk is the external address of the zoneminder machine, and 192.168.0.253 is its address on the local lan.

I don't think that this is anything to do with problems people have have with the authentication. On my setup I have always been able to fix that by changing "ZM_AUTH_RELAY", the method used to relay authentication information from 'Hashed' to 'Plain'.

Hopefully this will help someone else.

Posted: Sat Dec 20, 2008 2:41 am
by Darafeyen
Hi all,

The previous post helped a lot. Thankyou!

I had to add another entry to httpd.conf than the suggestion above, to point to cgi-bin. ZM now works for both streaming images and still images and playback events with working reverse proxy from an external location. Authentication also works fine. ZM version 1.23.3

Here is my httpd.conf configuration on the external visible web server.
This allows some web pages at the site to be served by the external server, and Zoneminder pages and ZM CPU intensive tasks to run and be served from an internal server (hidden.com)

ProxyRequests Off
ProxyVia On
ProxyPreserveHost On

<Proxy>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /zm/ http://hidden.com/zm/
ProxyPassReverse /zm/ http://hidden.com/zm/

#Added to get streaming and still images working (needs this to work)
ProxyPass /cgi-bin/ http://hidden.com/cgi-bin/
ProxyPassReverse /cgi-bin/ http://hidden.com/cgi-bin/

And the cgi-bin line in zm.conf
ZM_PATH_CGI=//var/www/localhost/cgi-bin