Forum Moderators: phranque

Message Too Old, No Replies

CGI-bin Directory Request = 403 Forbidden

         

gabriel01

10:15 pm on Apr 10, 2007 (gmt 0)

10+ Year Member



Hi,

Here's the deal: when someone does a GET for my server's cgi-bin directory, I, logically enough, want the server to execute cgi-bin/index.cgi. The problem? Instead of executing index.cgi, the server returns error 403.

I can get index.cgi to execute by calling it directly (i.e. GET cgi-bin/index.cgi instead of GET cgi-bin/).

What's up with this? I can't figure out why Apache won't execute the index file when I do the directory request.

My httpd20_app.conf contains

DirectoryIndex index.cgi index.shtml index.html index.html.var index.htm index.php index.php3 index.php4 index.pl index.jsp

so the server knows that index.cgi is an index file. What else could be the problem?

gabriel01

2:43 am on Apr 11, 2007 (gmt 0)

10+ Year Member



I figured it out. I was using
SetHandler cgi-script
which apparently results in this problem. I switched to using
AddHandler cgi-script .cgi
instead.