On 26 Jun 2009 at 19:57:10, Perrin Harkins wrote: > On Fri, Jun 26, 2009 at 6:36 PM, Anthony R Fletcher<a...@mail.nih.gov> wrote: > > Perrin asks what am I doing. I want to create a custom directory listing > > and modify the output of various file formats when they match a > > particular regexp. All the other files (like CGI scripts) should pass > > through untouched to be dealt with by Apache as if the perl handle > > wasn't there. > > I'm still not quite getting it. If you want to do a custom directory > listing, that's easy enough. You can match URLs that end in /. There > are some examples of directory handlers on CPAN too. I think they're > for mod_perl 1, but I think you'll be able to get the idea from them. > > Or, if what you're trying to do is run a CGI or PHP script and do > something to the output, you should write a filter instead of a > response handler. > > - Perrin
I actually wanted to do both; a custom directory listing and let the CGI or PHP scripts run as before. I did look at the various CPAN offerings and they just load the perl handler for everything in a particular directory. You are right, I need to match just against the URLs that end in / and only set up the mod_perl stuff for directories. Thanks for the help. Anthony