[cgiwrap-users] Permissions?.
Brought to you by:
nneul
From: Lic. R. G. G. <ro...@eq...> - 2000-11-24 19:36:16
|
Hello, I'm trying to install CGIWrap in an Apache's VirtualHost, configuring it towork just in that virtual host (that's, creating a script aliased directory for that virtual host, with one user only). I compiled cgiwrap with --with-cgi-dir=cgi-bin I have this directory structure: /path/to/myuser <- $HOME for my user. /path/to/cgi-aliased/cgiwrap <- the cgiwrap program @ the script aliased for the virtual host /path/to/myuser/html <- where the virtual host's pages live /path/to/myuser/cgi-bin <- where I want the user's scripts to be Then I configured Apache with this: <VirtualHost www.somedomain.com> ServerName www.somedomain.com DocumentRoot /path/to/myuser/html AddHandler cgi-wrapper .cgi Action cgi-wrapper /cgi-bin/cgiwrap/~myuser ScriptAlias /cgi-bin/ /path/to/cgi-aliased/cgiwrap/ </VirtualHost> Then I put a perl cgi like this: /path/to/myuser/cgi-bin/myscript.cgi , chmod'ed to 755, chown'ed to myuser.myuser and accessed the site with these URLs: http://www.somedomain.com/cgi-bin/myscript.cgi http://www.somedomain.com/cgi-bin/cgiwrap/~myuser/myscript.cgi I guessed that with the handler configured in Apache, this would result in cgiwrap executing myscript.cgi , am I wrong?. However I get "Script File Not Found!", and: "Extra Path Info: /~myuser/cgi-bin/myscript.cgi" from cgiwrap, and also cgiwrapd is complaining about not been able to find the script. I guess there's something wrong with the UserDir in Apache or a mess with the path's?. But I can't figure out why this is not working. Could somebody give me a hint, please?. Thank you in advance, Rodolfo. P.S. The same happens if I place a public_html inside the $HOME for myuser, like this: $HOME/public_html/cgi-bin P.P.S. My full cgiwrap configuration follows in an attachment. |