I solved a problem that I had with my cameras and I would like to
discuss about alternatives and a possible suggestion to improve
nph-mjprox ( and mjgrab ).
I have 7 cams at this time. Until now, all were public.
Yesterday, I added one camera ( number 7 ), to the same motion server,
but it has to be private. I am using user/password authentication
provided by Apache ( like a .htaccess ) to achieve this protection.
In this context, I have to ask for a user/password just if the
camera is 7. I could design a page and, when the camera was 7 I asked
for a password, but what would deny a user to just request an URL like
I think it is a little 'dirty' solution, but, until now, I
couldn't imagine something similar. I edited nph-mjprox.c, between
lines 70 and 80, and changed the line that test if the requested
camera is in the allowed range.
This way, I have two nph-mjprox: one of them (public /cgi-bin)
never accept requests for camera 7 and the other ( private
/cgi-bin/internal ), just accept requests for camera 7 and is
protected by a user/pass, by Apache.
So, I was wondering: would be possible to add a feature like a
selective camera requests or it is a bad idea? If it is good, I will
post the request at right place, but, before, I would like to discuss
to find, if exists, a possible better solution. If I could I would
develop a patch, but I don't have enough knowledge.
A would appreciate any suggestion or idea.
From: Hannes Gruber <hg@gu...> - 2007-02-23 13:38:08
do yo uknow the apache Module mod_rewrite?
I did not understand the way you configured your Server entirely, but it
sounds to me that modrewrite could be a solution.
What is the URL to the open cameras, so that we could look at them and
Zaphod Beeblebrox: Hey, Ford! How many escape capsules are there? Ford
Prefect: None. Zaphod Beeblebrox: You counted them? Ford Prefect: Twice.
!!! http://www.usw.at !!!
nimm die Herausforderung an