[cgiwrap-users] cgiwrap gives 'permission denied' when".cgi" omitted from URL
Brought to you by:
nneul
From: Neil B. <ne...@fn...> - 2002-11-04 11:57:04
|
I have had a rummage around various mailing list archives & docs., and I don't pretend to completely follow the various configs. that are in place; also, I ought to point out that this is running on a Cobalt RaQ where my site is hosted (i.e., not my box). Essentially, I wanted to set up Apache's "MultiViews" so that I could omit ".cgi" from script URLs, and make use of the PATH_INFO data. However, if I run my script normally (and, as configured by the RaQ somehow, through cgiwrap), it works. As soon as I omit the ".cgi", I get "permission denied" from cgiwrap. Multiviews is working OK for other (non-CGI) files. I'm intrigued by the following from cgiwrapd: <http://my.site/cgiwrapDir/cgiwrapd/cgi-bin/script.cgi> Script Relative Path: 'cgi-bin/env.cgi' Script Absolute Path: '/home/sites/site37/web/cgi-bin/env.cgi' But: <http://my.site/cgiwrapDir/cgiwrapd/cgi-bin/script> Script Relative Path: 'cgi-bin' Script Absolute Path: '/home/sites/site37/web/cgi-bin' The script filename's gone? Seems to me cgiwrap is then trying to 'run' the cgi-bin directory -> 'permission denied' (as opposed to the no-such-file error I get if I give a diff. script name). It looks like the cgiwrap running on the box is a Cobalt-modified 3.7 (cgiwrap-3.7-C1.src.rpm - but I can no longer find this on the Net). On a similar note, is it right that I get "/cgi-bin/script/" on the front of my script's PATH_INFO? I saw a hint in a '97 posting that that was expected (as it's the correct PATH_INFO for cgiwrap itself) but it seems a but odd, esp. as cgiwrapd purports to be doing a 'Fixing Environment Variables' step, and it meansd that mt CGIs need to be aware that they're being run from cgiwrap. -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit |