On Mon, 10 Jul 2000, Drew Taylor wrote:
> darren chamberlain wrote:
> >
> > Drew Taylor ([EMAIL PROTECTED]) said something to this effect:
> > > Hi all,
> > >
> > > I am using an Apache Handler module to create my home page, using
> > >
> > > <Location /index.pl>
> > > SetHandler perl-script
> > > PerlHandler ModuleName
> > > </Location>
> > >
> > > I have DirectoryIndex set to "index.pl index.html", but the Location
> > > directive is not being picked up for the index, so I get the default
> > > directory listing. Is there another solution instead of a RewriteRule to
> > > redirect "/" to "/index.pl"? Any thoughts would be appreciated.
> >
> > Calling /index.pl explicitly works correctly, right?
> Yes, /index.pl works properly. But since it's a "virtual" file, I have
> to just type it in.
>
> > Replacing <Location /index.pl> with a <FilesMatch "*.pl$"> which sets the correct
> > handler for .pl files should do it, and let mod_dir call index.pl itself.
> Well, the thing is "index.pl" really is Base::HomePage::Anystock. What
> I'm really looking for is a way to use a module as the directory index.
> I'm not terribly opposed to using Rewrite, but I'm curious if there is
> an alternative method.
Yes, use a PerlFixupHandler instead of DirectoryIndex. This use of a fixup
handler is detailed in the Eagle book.
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org