httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wouter van Vliet" <wou...@springt.nl>
Subject RE: [users@httpd] I *want* to "invoke directory as script"
Date Thu, 27 Nov 2003 09:42:09 GMT
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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message