Matt Sergeant wrote:

> > > for ($s = Apache->server; $s; $s = $s->next) {
> > >         my ($server, $port) = ($s->server_hostname, $s->port);
> > >         $r->print('server: ', $server, "\n");
> > >         $r->print('port: ', $port, "\n");
> > >
> > >         my $subreq = $r->lookup_uri("http://$server:$port/");
> > >         $r->print('variable value: ', $subreq->dir_config('SomePerlVariable'), 
>"\n");
> > > }

> Why don't you just try it? It should work regardless. The auth stuff
> should only happen if you actually call $subreq->run()

Thanks for that pointer re subreqs and auth.  I appreciate it.

For whatever reason, when I try this, though, dir_config() doesn't pick
up any of my Perl variables, even though it (naturally) has no trouble
doing this when called in the usual way (e.g., $r->dir_config()).

My configuration is pretty vanilla:  RedHat 6.1 w/ from-scratch builds
of Perl 5.00503, Apache 1.3.12, mod_perl 1.24.

-- 
Richard Goerwitz                                [EMAIL PROTECTED]

Reply via email to