Problem solved.

I used Clinton's suggestion to put the sections in httpd.conf
with just one modifcation:

The push @ProxyPass should read:
push @ProxyPass, "/users/ http://$server/users";

not:
push @ProxyPass, "/users/ ", "http://$server/users";

Being new to dynamic configuration through mod_perl, I can only say
that this is AWESOME stuff!!!! Lots of synapses now going through my brain.

Thanks all,
Tom






At 11:58 AM 8/14/2006, Clinton Gormley wrote:
>On Mon, 2006-08-14 at 11:44 -0400, Tom Weber wrote:
> > Hi,
> >
> > I would like to set up dynamic proxy server names in httpd.conf in an
> > Apache/2.2.2 (Unix) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2
> > Perl/v5.8.8 on Red Hat 2.6.9-34.0.2.ELsmp #1 SMP environment.

>
>Hi Tom
>
>having just spent all day looking at dynamic configuration, I know
>exactly where to look.
>
>http://perl.apache.org/docs/2.0/api/...lSections.html
>and
>http://perl.apache.org/docs/2.0/api/...#C_add_config_
>
>You could do this as follows: (untested)
>
>
> my $hostname = `hostname`;
> my %map = (
> F1 => 'M1',
> F2 => 'M2'
> );
> push @ProxyPass,"/users/","http://$map{$hostname}/users";
>

>
>or, in a startup file:
>$s = Apache2::ServerUtil->server;
>$server->add_config("ProxyPass /users/ http://$map{$hostname}/users");
> >

>
>clint
>
>__________________________________________________ ______________________
>
>Clinton Gormley clinton@traveljury.com
>
>www.TravelJury.com - For travellers, By travellers