>>>>> "darren" == darren chamberlain <[EMAIL PROTECTED]> writes:
darren> Does declining non-html files help? I.e.,
darren> sub handler {
darren> my ($r) = @_;
darren> return DECLINED unless ($r->content_type eq 'text/html');
darren> # Process HTML file...
darren> return OK;
darren> }
darren> I would think that this would skip directory accesses and run when
darren> mod_autoindex does it's internal redirect.
Even more precisely, I did the similar thing in Stonehenge::Pictures
<http://www.stonehenge.com/merlyn/WebTechniques/col41.html>. If
$r->content_type is DIR_MAGIC_TYPE, and $r->uri does not match /\/$/,
then I return DECLINED. Which mod_dir will then send the redirect
for.
--
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!