|
Re: Perl Configured VirtualHost question: msg#00600apache.mod-perl
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> |
|---|---|---|
| Previous by Date: | Re: reverse_proxy ?: 00600, Ged Haywood |
|---|---|
| Next by Date: | Re: Yahoo is moving to PHP ??: 00600, John Saylor |
| Previous by Thread: | Perl Configured VirtualHost questioni: 00600, siberian |
| Next by Thread: | reverse_proxy ?: 00600, Scott Alexander |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |