Re: Problem with Directory in Perl sections

2001-11-01 Thread Richard L. Goerwitz III

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   [EMAIL PROTECTED]
tel: 401 438 8978



Re: Problem with Directory in Perl sections

2001-10-31 Thread James Stalker

OK, looks like no-one has any ideas - maybe I should rephrase the question.

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

Thanks,

Jim


On Mon, Oct 29, 2001 at 08:58:24AM +, James Stalker wrote:
> Hi,
> 
> I have hit a problem with the latest couple of versions of mod_perl, and I wondered 
>if anyone might know a solution.
> 
> We're using Apache 1.3.22 with mod_perl 1.26, and there appears to be a problem with 
>the  directive in perl sections...
> e.g.
> 
> $Directory{$DocumentRoot}={
> Options =>  '-Indexes FollowSymLinks',
> AllowOverride   =>  'None',
> SetHandler  =>  'perl-script',
> PerlHandler =>  'Apache::EnsEMBL::SendDecPage',
> order   =>  'deny,allow',
> allow   =>  'from all',
> };
> 
> does not work in a  section but it works fine outside:
> 
> 
> Options -Indexes FollowSymLinks
> AllowOverride   None
> SetHandler  perl-script
> PerlHandler Apache::EnsEMBL::SendDecPage
> order   deny,allow
> allow   from all
> 
> 
> /perl-status reports that the former looks as I would expect:
> 
> %Directory = (
>   '/mysql/ensembl/www/server/htdocs' => {
> 'Deny' => 'from all',
> 'AllowOverride' => 'None',
> 'Order' => 'deny,allow',
> 'PerlHandler' => 'Apache::EnsEMBL::SendDecPage',
> 'Options' => '-Indexes FollowSymLinks',
> 'SetHandler' => 'perl-script'
>   },
> );
> 
> There are no errors reported, but the handler simply doesn't kick in.  We have been 
>using this config for some months now, and this worked fine in 1.21.  It stopped 
>working by at least version 1.25.
> 
> Anybody have any ideas?
> 
> Regards,
> 
> James

-- 
James Stalker
Senior Web Developer - Project Ensembl - http://www.ensembl.org