At 12:52 22.04.2002, Sören Stuckenbrock wrote:
> >> Nope, using:
> >>
> >>     Alias /contest /www/u-dev/contest
> >>     PerlModule Apache::Registry
> >>     PerlModule Apache::DBI
> >>     PerlTaintCheck On
> >>     <Location /contest>
> >>        SetHandler perl-script
> >>        PerlHandler Apache::Registry
> >>        PerlSetVar BlaTest BlaVal
> >>        PerlRequire /www/u-dev/contest/mod_perl_init.pl
> >>        Options ExecCGI
> >>        PerlSendHeader Off
> >>        allow from all
> >>     </Location>
> >>
> >> doesn't work any better...
> >
> > As the folks said you need to use $r->dir_config if you want to pull
> > the  Location specific value.
>
>Does this mean I have to add this to my scripts directly and can't do it at
>Server-Startup in my startup.pl?

Here's what Geoffrey Young said, you seem to have missed it:

 > you can't use $s (the server record) to capture PerlSetVar that exist on 
a per-directory basis (within a <Location> or <Directory> block).  try
 > Apache->request->dir_config('BlaTest');
 >
 > instead.  you should use $s->dir_config() for items set on a per-server 
basis only, not per-directory.

As far as I understand him, you can use Apache->request inside the 
startup.pl script (try it!)



-- 
Per Einar Ellefsen
[EMAIL PROTECTED]


Reply via email to