> ---ORIGINAL MESSAGE--- > Date: Mon, 10 Feb 2003 15:09:07 -0800 (PST) > From: Jim Angstadt <[EMAIL PROTECTED]> > Subject: Re: [vox-tech] cgi-bin in user home dirs > To: [EMAIL PROTECTED] > Reply-To: [EMAIL PROTECTED] > > > --- Tim Riley <[EMAIL PROTECTED]> wrote: > > Jim Angstadt wrote: > > > I'm trying to allow user accounts to have their own > > > cgi-bin directory on a RH 7.2, apache box at my home. > > > > > > For testing, I have file test.cgi. > > > (See below for file and permissions.) > > > > > > When the file is placed in /var/www/cgi-bin it works. > > > Meaning, when I open a browser and key in > > > http://localhost/cgi-bin/test.cgi > > > I see "Hello There". > > > > > > When placed in /home/ja/public_html/cgi-bin it does > > > not work. When I key in > > > http://localhost/~ja/cgi-bin/test.cgi > > > I have gotten either of two responses > > > 1. the script text > > > 2. an error msg: "Forbidden You don't have > > > permission to access /~ja/cgi-bin/test.cgi > > > on this server. > > > > I've never done this, but based upon the Apache > > configuration file syntax, this should be possible. > > Note: this might be close but not exact. > > > > Edit httpd.conf (mine's in /etc/httpd/conf) > > Got to the line that says: ScriptAlias /cgi-bin/ > > "/var/www/cgi-bin/" > > Below it add a new line that says: ScriptAlias > > /cgi-ja/ > > "/home/ja/cgi-bin/" > > Hi Tim, > > Thanks for the help. I added both items to > httpd.conf and then restarted httpd. Then I > keyed http://localhost/~ja/cgi-ja/test.cgi into > the browser location bar and got a "Not Found" > response. > > Thinking the cgi-bin dir should be directly > under /home/ja, I moved it there, restarted > httpt, and got the same "Not Found" msg. > > Then I changed the Options line of the new block > to read: Options none ExecCGI > and restarted httpd. Nope. > > Likewise for just: Options ExecCGI > > It's gotta be something simple I'm missing.
Tim wasn't quite sure what he was trying to do, and he said that. He gave you instructions to access http://localhost/cgi-ja/ as a cgi-bin directory. You are trying to access http://localhost/~ja/cgi-bin/ Now I'm also shooting in the dark here (I don't use Apache, but I looked through the documentation to see what the solution might be. I suggest you check out my suggestion in the documentation yourself.) but it looks like the solution is to say something along the lines of <Directory /home/*/cgi-bin/> Options ExecCGI </Directory> CHECK THIS OUT IN THE DOCUMENTATION BEFORE YOU DO IT. I KNOW NOTHING ABOUT APACHE AND CANNOT BE SURE THAT THIS WILL WORK. Specifically, I'm not entirely certain that the Options line is correct. -- PGP/GPG Fingerprint: D5E2 8839 6ED3 3305 805C 941F 9476 A9BD E2B2 CAD1 Import with `gpg --keyserver pgp.mit.edu --recv-key E2B2CAD1` Also on www: http://wwwcsif.cs.ucdavis.edu/~bloom/kabloom.asc For more information about PGP and GPG, see http://www.gnupg.org/
msg04368/pgp00000.pgp
Description: PGP signature
