Rando Christensen wrote:
> Hi, I'd like to have a modperl handler that handles directory indexing
> similar to mod_autoindex, as in fitting the following rule:
> 
> if at any time it encounters a directory with no other valid indexing
> method, the modperl handler is called and will produce output of the
> files within the directory.

see the DirectoryIndex documentation - you can specify a URL as well as
individual files, so you can simply point to a mod_perl content handler and
leave mod_autoindex/mod_dir to do what they do best.

> 
> I can write the handler easily, but what I'd like to know is how to set
> up apache to call my handler globally (for all vhosts) that do not have
> anything else set up to handle any particular directory.

if you use DirectoryIndex then just put

  DirectoryIndex index.html /yourhandler/

at the topmost level, outside of any vhost directives.

HTH

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to