> Hi Frank,
[...]
>> Can it be that a subrequest (issued (by chance?) to the same child)
>> is messing things up? You might try adding a warn to the
>> CleanupHandler.
>
> I guess it could be... what should i be logging for in the
> CleanupHandler? (aka, what should i print to see if its a subrequest,
> and if it is, where it was called form?).
I think a simple logmessage would help already, but you might want to
try
print STDERR 'Cleanup handler called for '.($r->is_initial_req() ?
'initial' : 'sub').' request for '.$r->uri().'. Document root was
'.$r->document_root();
and this before you reset document_root...
--Frank