>>>>> "John" == John Siracusa <[EMAIL PROTECTED]> writes:
John> I'm still not sure how to correctly search for "index-ish" files
John> (as per the server configuration) rather than explicitly tacking on
John> the constant string "index.html", however. How does apache do this
John> internally?
You need to decline in the content handler if the content type is
DIR_MAGIC_TYPE (defined in Apache::Constants::DIR_MAGIC_TYPE), and
that'll fall through to mod_autoindex and/or mod_dir. If that comes
back to you (to handle index.html or whatever is found first if it
exists), you'll see it as a chained request with a $r->prev of the
request you declined earlier.
Also, if you choose to *handle* DIR_MAGIC_TYPE, you *must* decline
(return DECLINED) if the URL does not end in a slash (letting mod_dir
handle it again). Very Important. Because then Apache will
automatically return an external redirect so that relative names work
correctly. Also Very Important. :)
Use to learn DECLINED. DECLINED is your friend!
Doug will correct me if I'm wrong, but I had to work this out while
I was playing with my mod_perl Picture server, available online
as <http://www.stonehenge.com/merlyn/WebTechniques/col41.html>.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!