in reply to "proper" mod_perl config directives

Untested, but I often get this stuff right anyway {grin}:
<Files index.pl> SetHander perl-script PerlHandler Apache::Registry </Files> DirectoryIndex index.pl index.html
That'll try an index.pl file if it's present, otherwise fall back to an index.html, whenever you ask for a directory instead of a file.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: &bull;Re: "proper" mod_perl config directives
by geektron (Curate) on Sep 02, 2003 at 19:01 UTC
    creating a bogus index.pl seems to have done the job along with the suggested fix.
      Uh, why a bogus index.pl? Isn't your code to handle the directory in there?

      If not, you didn't spell things out very carefully. Do you have a handler that should apply only to directories? If so, it needs to simply decline anything it doesn't want to handle.

      I have an example of that at my mod_perl-enabled Picture handler, In particular, simply return DECLINED if content-type is not DIR_MAGIC_TYPE.

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

        yes, the code is there to handle the directory ... more specifically, the whole site is handled by my handler.

        if i don't have some kind of index file in there, i get 403 Forbidden errors. if i put it in there, it works.