perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard L. Goerwitz III" <rich...@goerwitz.com>
Subject Re: Problem with Directory in Perl sections
Date Thu, 01 Nov 2001 13:21:04 GMT
James Stalker wrote:

> Does anyone here have Directory working in Perl sections in mod_perl
> 1.25 or above?

It's funny that you mention this because, now that I think
about it, I always set up directory and location blocks inside
virtual host blocks, e.g.:

$VirtualHost{"_default_:80"} = {
  ServerName      => $hostname,
  DirectoryIndex  => 'index.html index.shtml index.epl',
  etc...
  Location => {
    '/admin/perl-status' => {
      SetHandler  => 'perl-script',
      PerlHandler => 'Apache::Status'
    },
    etc...
  },
  FilesMatch => {
    q(.*\\.epl$) => {
      SetHandler  => 'perl-script',
      PerlHandler => 'HTML::Embperl',
      Options     => '+ExecCGI'
    },
    etc...
  },
  Directory => {
    directory stuff goes here
  }
}

-- 

Richard Goerwitz                               richard@Goerwitz.COM
tel: 401 438 8978

Mime
View raw message