David Wheeler wrote:
> On May 24, 2004, at 5:17 PM, Geoffrey Young wrote:
>
>> ok, that still looks funky. here's where I'm coming from, which may be
>> different than where you're coming from :)
>
>
> Heh, okay, sorry for my density. ;-)_
no problem. I'm the dense one most of the time :)
>> I think what you want to do is activate mod_perl only for things where
>> mod_dir would ordinarily be invoked, namely when the URI resolves to a
>> directory and the URI does not end with a slash.
>
>
> That's exactly right.
actually, I think I mucked up the explanation, but you get it right below :)
> So how 'bout this?
>
> sub fixup_handler {
> my $r = shift;
> $r->handler('perl_script') # or $r->handler('modperl')
> if $r->content_type eq DIR_MAGIC_TYPE && $r->uri =~ m{/$};
> return HTTP_OK;
> }
>
> So for directories without a final slash, mod_dir will handle the
> request; for directories with a final slash, we're telling Apache to let
> mod_perl (and therefore Mason) handle it. For everything else, we let be
> what will be (whatever SetHandler determines).
yeah, that looks and sounds right. cool.
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]