Ah..I forgot to mention the key part. I can get/access the cgi-bin through a ~user folder.. the problem occurs with virtual hosts. Example: A user has their /home/user/public_html folder attached to a virtual host..and when I go to list their cgi-bin, it says access denied. However, if I do site.com/~user/cgi-bin, it lets me access it. Oddly enough, its technically the same exact folder. Is there a different rule with virtual hosts? Talk to you soon, thanks in advance :)
 
Chet
----- Original Message -----
Sent: Tuesday, July 16, 2002 6:08 AM
Subject: RE: apache cgi-bin problems

First, make sure the "public_html" directory has open enough permissions:
 
drwxr-xr-x    2 username    usergroup      4096 Apr 19 16:27 public_html
 
Next, make sure the public_html directory is defined in Apache to allow the execution of CGI scripts:
 
<Directory /home/*/public_html>
order allow,deny
allow from all
Options Indexes FollowSymLinks ExecCGI
IndexOptions FancyIndexing NameWidth=* SuppressDescription
</Directory>
 
Lastly, you may want to set up aliases for each user:
 
ScriptAlias /cgi-bin/username "/home/username/public_html/"
 
Hope this helps!   
-----Original Message-----
From: Chet Nichols III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 12:50 AM
To: [EMAIL PROTECTED]
Subject: apache cgi-bin problems

Alright here goes..
 
I'm trying to set it up so each user can have a working cgi-bin folder in their public_html folder. I added the AddHandler thing to allow .cgi as cgi-script or whatever it was, but every time I try and run a script, it says it doesn't exist, and then it says the cgi-bin folder doesn't have permission to be viewed, but it does! However, users can run cgi scripts OUTSIDE of the cgi-bin folder. So what's up with that? I've been messing around for a weekend now, and nothing I've read seems to have helped. Thanks in advance for the response, talk to you soon,
 
Chet

Reply via email to