Zoneminder v1.25.0 and lighttpd - can it be made to work?
Posted: Sat Apr 06, 2013 6:35 am
Hi all. On Ubuntu 12.10 with the apt-get installation of ZM, I am able to get ZM to work well with Apache. But as I have been running lighttpd for many years, I have been trying to get ZM to work with lighttpd. Everything seems to work (zone detection, recording of the stream to the ZM directories etc), other then being able to view the stream in my browser (Chrome). I have not been able to find a solution after many hours of searching.
Initially I was getting an exception in the window where the stream should appear. This was resolved when I correctly set up the alias to the cgi-bin for lighttpd:
Now, instead of getting the exception where the stream should appear I get the words "No part content here". This is an error that can be found in the cambozola source of /shared/CamStream.java.
If have tried both nph-zms and zms but the same error is generated
So it seems that the stream is making it all the way to cambozola but then failing with some problem in the headers. With apache as the web server it is fine so there must be a lighttpd setting that needs to be tweaked.
Any ideas or has anyone been able to get ZM and lighttpd to work 100% on Ubuntu.
Thanks
Initially I was getting an exception in the window where the stream should appear. This was resolved when I correctly set up the alias to the cgi-bin for lighttpd:
Code: Select all
alias.url += (
"/zm" => "/usr/share/zoneminder/"
)
alias.url += (
"/cgi-bin" => "/usr/lib/cgi-bin/"
)
Code: Select all
ctype = (String) headers.get("content-type");
if (ctype == null) {
throw new Exception("No part content type");
}
So it seems that the stream is making it all the way to cambozola but then failing with some problem in the headers. With apache as the web server it is fine so there must be a lighttpd setting that needs to be tweaked.
Any ideas or has anyone been able to get ZM and lighttpd to work 100% on Ubuntu.
Thanks