You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Andrew Gilmartin <an...@ingenta.com> on 2001/11/14 17:50:00 UTC

Re: mod_autoindex/8745

The following reply was made to PR mod_autoindex/8745; it has been noted by GNATS.

From: "Andrew Gilmartin" <an...@ingenta.com>
To: <ap...@Apache.Org>
Cc:  
Subject: Re: mod_autoindex/8745
Date: Wed, 14 Nov 2001 11:39:49 -0500

 The problem is not with mod_autoindex, but with mod_dir's handling of the
 internal redirect. Mod_dir knows nothing about the files listed in
 DirectoryIndex: It just tries to do an internal redirect to each file
 listed until one succeeds. The internal redirect looks different than
 mod_include's, for example, in that mod_include knows when it is calling a
 CGI script and so sets the redirect's environment by calling
 
         ap_add_common_vars(r);
         ap_add_cgi_vars(r);
 
 Mod_dir's does not have this foreknowledge and so (ultimately) only calls
 
         ap_add_common_vars(r);
 
 which does not setup PATH_INFO, etc.
 
 From what I can tell from reading the code so far is that mod_dir needs a
 special internal redirect is more aware of the parent environment. That is
 the directory's uri is the path info to the script at the given directory
 index.
 
 ---
 Andrew Gilmartin
 Senior Developer
 Ingenta
 andrew.gilmartin@ingenta.com
 andrewgilmartin (aim)
 401-743-3713 (cell)