This always worked for me:
<Location />
SetHandler perl-script
PerlHandler ModuleName
</Location>
But maybe it worked for reasons I don't understand :)
Chris
* Drew Taylor ([EMAIL PROTECTED]) [000710 10:22]:
> 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.
>
--
Chris Winters
Internet Developer INTES Networking
[EMAIL PROTECTED] http://www.intes.net/
Integrated hardware/software solutions to make the Internet work for you.