This will solve it. I had the same problem with Apache 1.3.9 (vanilla
RedHat install) just a few days ago. The AddHandler command seemed the
most straightforward way to do it, since that basically enabled CGIs across
the whole system instead of just in one directory.
: The easiest way would probably be to add
: AddHandler cgi-script .cgi
: to your httpd.conf file, and then make sure all your cgi scripts end in
: .cgi. I'm guessing you're having this problem because you don't have
: a ScriptAlias directive in your config pointing to your personal cgi
: directory. You might also be able to do it with a line like
: ScriptAlias /~megan/cgi-bin/ "/home/megan/cgi-bin/"
: If none of that works, post (or e-mail) the relevant parts of your
:> I am getting a 'forbidden' error when trying to access my cgi files from the
:> cgi-bin in my home directory in a browser. I have checked the access.conf
:> and it SEEMS to be fine. I am able to execute the script from the command
:> prompt and it works fine in /etc/httpd/cgi-bin but not in
:> /home/megan/cgi-bin/. Any ideas?