On Tue, Apr 06, 2004 at 12:10:08PM -0700, Philippe M. Chiasson wrote:
> On Mon, 2004-04-05 at 12:14 -0500, Will Trillich wrote:
> > okay. we're trying to use <perl> to configure virtual hosts -- here's
> > Data::Dumper showing the %VirtualHost hash:
>
> At a quick glance, you most certainly must have meant:
>
> %VirtualHost = ( [...] );
> instead of
> %VirtualHost = { [...] );
true. that's Data::Dumper output, which is given a reference to
the hash instead of the hash itself.
> > %VirtualHost = {
i.e.
%VirtualHost = (
> > '*:80' => [
> > {
[snip]
> > 'ServerName' => 'one',
[snip]
> > },
> > {
[snip]
> > 'ServerName' => 'three',
[snip]
> > }
> > ]
)
> > when trying to use this config, apache2 belches
> >
> > NameVirtualHost *:80 has no VirtualHosts
> >
> > we'd love to know why. pointers are very welcome!
should this be different, via mod_perl, than the following, in
apache2.conf (ala debian)?
NameVirtualHost *:80
<VirtualHost *:80>
ServerName one
</VirtualHost>
<VirtualHost *:80>
ServerName three
</VirtualHost>
--
will trillich
mayhugh services
812 423 6314 voice
812 423 6303 fax
http://www.serensoft.com/
http://www.midwestRepo.com/
http://www.skylineAuto.net/
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html