problems with https

Support and queries relating to all previous versions of ZoneMinder
Locked
juju_bean
Posts: 11
Joined: Tue Nov 21, 2006 1:52 am

problems with https

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
juju_bean
Posts: 11
Joined: Tue Nov 21, 2006 1:52 am

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If there anything in your system logs or the httpd error logs?
Phil
jordg
Posts: 11
Joined: Mon Feb 13, 2006 7:50 am
Location: Melbourne Australia

Post by jordg »

I have a similar setup. I am using a self signed certificate. Is that OK?

Thanks
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The certificate will not make a difference, beyond being asked by your browser if you want to accept it.
Phil
juju_bean
Posts: 11
Joined: Tue Nov 21, 2006 1:52 am

logs

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

what browser are you using im wondering if ie and cambozola works differently with https than ff?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Errors for ssl would most likely appear in the ssl_error_log
juju_bean
Posts: 11
Joined: Tue Nov 21, 2006 1:52 am

solved

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for coming back with the fix. I'm sure it will help someone else in the future.
Phil
scottfinman
Posts: 18
Joined: Wed Aug 16, 2006 1:36 pm
Location: Baltimore, MD

Success For Me As Well

Post 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.
Locked