Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 52220 invoked from network); 27 Nov 2003 09:42:53 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Nov 2003 09:42:53 -0000 Received: (qmail 49137 invoked by uid 500); 27 Nov 2003 09:42:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 49124 invoked by uid 500); 27 Nov 2003 09:42:15 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 49111 invoked from network); 27 Nov 2003 09:42:14 -0000 Received: from unknown (HELO planck.hhs.nl) (145.52.2.10) by daedalus.apache.org with SMTP; 27 Nov 2003 09:42:14 -0000 Received: from ravms by planck.hhs.nl with mail-ok (Exim 4.24) id 1APIfL-00054K-05 for users@httpd.apache.org; Thu, 27 Nov 2003 10:42:26 +0100 Received: from [145.52.252.67] (port=1910 helo=lits1) by planck.hhs.nl with esmtp (Exim 4.24) id 1APIfK-00053e-Rs for users@httpd.apache.org; Thu, 27 Nov 2003 10:42:26 +0100 From: "Wouter van Vliet" To: Date: Thu, 27 Nov 2003 10:42:09 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Thread-Index: AcO0xsK6sUE9rWyBS+u2nPd4xaizAAAA1lrQ Message-Id: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] I *want* to "invoke directory as script" X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N kevin@delorean.solidusdesign.com wrote: > I am receiving the "attempt to invoke directory as script" > error in my logs (Apache v. 1.3.29). I understand that this > is usually indicative of misconfiguration. However, in this > instance, this behavior is exactly what I *do* want. > > I have a valid CGI script (returning a proper Content-Type > header, mode 0755, all parent directories readable by the > apache user, etc.) called "index.cgi" sitting in a > subdirectory of my main cgi-bin directory. > > How do I configure Apache to treat this request: > > http://server/cgi-bin/getfile/?paramstring > > As a call to: > > /usr/local/apache/cgi-bin/getfile/index.cgi > > With ENV{QUERY_STRING}="paramstring" ? > > I *know* this can be done with Apache (I've seen it done), > but I haven't had luck actually configuring it. One would > think that a combination of "ScriptAlias", "Options > +ExecCGI", and "DirectoryIndex index.cgi" would be > sufficient. What am I missing? TIA, HAND. In my reality, "DirectoryIndex index.cgi" is exactly what you want. Have you tried to just make a call to http://server/cgi-bin/getfile/index.cgi?paramstring .. see what that does? Now, tell me.. what does this TIA mean? I've been seeing it around and have no clue what it would stand for :S:D --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org