cgi-bin path confusion...

Forum for questions and support relating to the 1.24.x releases only.
Locked
chenko
Posts: 25
Joined: Mon Jan 15, 2007 6:24 pm

cgi-bin path confusion...

Post by chenko »

/etc/zm.conf is set to...
# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www/zoneminder/htdocs

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/var/www/zoneminder/cgi-bin
both of these exist

http://localhost/ points to /var/www/localhost/htdocs/
http://localhost/zoneminder/ points to /var/www/zoneminder/htdocs/


my problem is that zoneminder is trying to get cgi-bin from http://localhost/cgi-bin/ ... isn't this where the root www would get it's cgi-bin from? I did try changing the path in the options (on the zoneminder page) to /zoneminder/cgi-bin/ instead with no luck


My vhost for /zoneminder
ScriptAlias /cgi-bin/zms "/var/www/zoneminder/cgi-bin/zms"
ScriptAlias /cgi-bin/nph-zms "/var/www/zoneminder/cgi-bin/nph-zms"

<Directory "/var/www/zoneminder/cgi-bin">
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

Alias /zoneminder "/var/www/zoneminder/htdocs"

<Directory "/var/www/zoneminder/htdocs">
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

I have just noticed the ScriptAlias above, but it doesn't seem to be working... giving me a broken image


http://localhost/cgi-bin/nph-zms?mode=s ... 1247054099

The requested URL /cgi-bin/nph-zms was not found on this server.

Apache logs show a 404
[08/Jul/2009:12:55:08 +0100] "GET /cgi-bin/nph-zms?mode=single&monitor=1&scale=100&connkey=518158&rand=1247054099 HTTP/1.1" 404 275



(I'm using Firefox + Chrome)
chenko
Posts: 25
Joined: Mon Jan 15, 2007 6:24 pm

Post by chenko »

/additional

If I move /zoneminder/ into / (without changing anything else, even config paths) it works (well it shows the image, but its distorted like my previous problems).
Locked