logo       

Re: Perl Configured VirtualHost question: msg#00600

apache.mod-perl

Subject: Re: Perl Configured VirtualHost question

On Wed, 30 Oct 2002 at 02:24, siberian@xxxxxxxxxxxx opined:

:Typically my manually configured vhosts look like this :
:
:NameVirtualHost 10.0.0.20:80
:
:<VirtualHost 10.0.0.20:80>
: ServerName BladeBla.com
: DocRoot ....
: ...
: ...
:</VirtualHost>
:<VirtualHost 10.0.0.20:80>
:...
:</VirtualHost>
:
:This works great for my statically configured hosts. How
:do you accomplish this same VHost scheme wheh configuring
:via perl? Each %VirtualHost key is a single server and I
:am so far unable to assign multiple values ( array ref? )
:to a single key (the IP assigned in NameVirtualHost).

do you have the eagle book? how to do this is documented on page 418.
you are correct, use an array ref, with each value being a hash ref, one
for each virtual host:

my @config = (
{ ServerName => 'one.fish.net',
ServerAdmin => 'webmaster@xxxxxxxxxxxx',
etc.... },
{ ServerName => 'red.fish.net',
ServerAdmin => 'webmaster@xxxxxxxxxxxx',
etc.... }
);

$VirtualHost{'192.168.2.5'} = \@config;






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise