View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-10-2007, 05:56 PM   #1
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Rep: Reputation: 15
CGI-bin Directory Request = 403 Forbidden


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.jsp
so the server knows that index.cgi is an index file. What else could be the problem?
Old 04-10-2007, 09:43 PM   #2
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Original Poster
Rep: Reputation: 15
I figured it out. I was using
SetHandler cgi-script
which apparently results in this problem. I switched to using
AddHandler cgi-script .cgi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 cgi-bin Forbidden Access cluckshot Linux - Software 5 01-09-2009 12:26 PM
403 Forbidden when accessing http://mydomain/cgi-bin/openwebmail/ mtsolutions Linux - Software 3 10-27-2006 08:31 AM
Apache2 virtual host cgi 403 Forbidden / mossy Linux - Software 15 07-27-2005 04:56 PM
Vqadmin.cgi, 403 Forbidden Erros, and httpd.conf woe opioid Linux - Software 3 05-11-2004 08:08 AM
403 Forbidden access to web with php and cgi scripts tonyboy Linux - Software 3 03-17-2004 07:45 AM

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration