LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

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


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

Code:
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?
 
Old 04-10-2007, 09:43 PM   #2
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

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


Reply


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/openwebmail.pl 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 01:03 PM.

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