Page 1 of 1

problems with https

Posted: Tue Nov 21, 2006 2:01 am
by juju_bean
I have ZoneMinder 1.2.22 installed and working on the latest version of Debian (stable). I'm using Apache2. ZoneMinder is working very well using http on my local network, but I cannot access the monitors using https over the internet. I'm using the jpeg streaming method.

Posted: Tue Nov 21, 2006 9:19 am
by jameswilson
you need to enable https in apache, as your on debian you will have to check the debian forums but i expect you modify httpd.conf
I use webmin for this

Posted: Sun Dec 10, 2006 4:32 am
by juju_bean
thanks for the reply.

i can view an https page from this server, and you can see in the access log line below that i'm getting to the zms streamer (ip and user have been changed).

*.*.*.* - - [09/Dec/2006:23:29:06 -0500] "GET /cgi-bin/zms?mode=jpeg&monitor=2&scale=100&maxfps=5&user=user&rand=1165724944 HTTP/1.1" 104 1056651

but, there is no video. i can see the stills in the events, but no video in the events or monitor.

http has video in both the streaming monitor and the events.

Posted: Mon Dec 11, 2006 11:38 am
by zoneminder
If there anything in your system logs or the httpd error logs?

Posted: Thu Dec 21, 2006 12:57 pm
by jordg
I have a similar setup. I am using a self signed certificate. Is that OK?

Thanks

Posted: Sun Dec 24, 2006 3:22 pm
by zoneminder
The certificate will not make a difference, beyond being asked by your browser if you want to accept it.

logs

Posted: Thu Jan 04, 2007 2:09 am
by juju_bean
I checked syslog and apache2/error_log while trying to access monitor via https. There were no new lines in the logs (I watched them with tail) while the monitor page loaded. It's like zms is not being loaded? I also watched ,with tail, zmdc.log and zmwatch.log while the monitor page was loading. No new lines in the zm log files either.

Posted: Thu Jan 04, 2007 2:31 am
by jameswilson
what browser are you using im wondering if ie and cambozola works differently with https than ff?

Posted: Thu Jan 04, 2007 2:42 am
by cordel
Errors for ssl would most likely appear in the ssl_error_log

solved

Posted: Sat Jan 20, 2007 1:21 am
by juju_bean
Answering my on post to assist those that may need it.

I found the solution on http://www.debian-administration.org/articles/349.

I had to add

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

to /etc/apache2/apache2.conf.

SSL now has working video on the monitor page. :D

Posted: Tue Jan 23, 2007 10:34 pm
by zoneminder
Thanks for coming back with the fix. I'm sure it will help someone else in the future.

Success For Me As Well

Posted: Sun Aug 26, 2007 10:31 pm
by scottfinman
Thanks for finding that - spent the afternoon on precisely this problem; I can attest to the above addition to apache2.conf working under Ubuntu Feisty for no streaming through zms/nph-zms while using https despite still images being recorded.