[ale] Apache and cgi/perl "file not found" error

Fletch fletch at phydeaux.org
Mon Jul 10 13:15:34 EDT 2000



        From the mod_include documentation that ships with apache and
most likely is available as

http://yourhost/manual/mod/mod_include.html


exec 

     The exec command executes a given shell command or CGI
     script. The Includes NOEXEC Option disables this command
     completely. The valid attributes are:

     cgi 

         The value specifies a (%-encoded) URL relative path to the
         CGI script. If the path does not begin with a (/), then it is
         taken to be relative to the current document. The document
         referenced by this path is invoked as a CGI script, even if
         the server would not normally recognize it as such.  However,
         the directory containing the script must be enabled for CGI
         scripts (with ScriptAlias or the ExecCGI Option).

         The CGI script is given the PATH_INFO and query string
         (QUERY_STRING) of the original request from the client; these
         cannot be specified in the URL path. The include variables
         will be available to the script in addition to the standard
         CGI environment.

         If the script returns a Location: header instead of output,
         then this will be translated into an HTML anchor.

         The include virtual element should be used in preference to exec cgi. 

     cmd 

         The server will execute the given string using /bin/sh. The
         include variables are available to the command.



        Which explains why `cmd="/cgi-bin/foo"' replys that the file
wasn't found because most likely you don't have a /cgi-bin directory
sitting under /.  It also explains why using a relative path without
the `/' works, since it's executed from the apache directory.


-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
678 443-6239(w)       |  scary questions." -- Jules                =(___)=
                      |                                               U
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list