Apache Configuration with PERL

A

anno4000

Hi,

I do somthing like;

push @{$VirtualHost{'*'}}, {
ServerName => 'www.firstdomain.com',
DocumentRoot => "C:/www/firstdoc",
...
};

push @{$VirtualHost{'*'}}, {
ServerName => 'www.seconddomain.com',
DocumentRoot => "C:/www/seconddoc",
...
};

But only the first one is active. Even if I call the domain
www.seconddomain.com,
I get the first document root. Whats wrong?

Nothing is wrong with your Perl (not PERL) code. You don't say which
Perl module for Apache configuration you are using, so we can't tell
whether those directives make sense.

This looks more like an Apache problem than a Perl problem. You'd
probably be better off asking this on a newsgroup about Apache. If
you do, mention the version of Apache you are running. They will
also ask you if both (all) server names have DNS entries.

Anno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top