[apache-1.3.26/mod_perl-1.27 from Debian/unstable]

Hello,

I am having trouble setting different Perl*Handler's for two different
VirtualHosts. The virtual hosts use one IP and are name-based.

configuration is as follows:

Port 80
Bind 10.0.0.1
NameVirtualHost 10.0.0.1
PerlRequire /etc/apache-perl/startup.pl

<VirtualHost 10.0.0.1>
    ServerName test1.domain

    ...
    PerlFixupHandler App1::Setup
    ...
</VirtualHost>

<VirtualHost 10.0.1.1
    ServerName test1001.domain
    ...
    PerlFixupHandler App1001::Setup
    ...
</VirtualHost>

According to Apache Name Virtual Host docs, this is the right way to
setup name-based virtual hosts (imho).

When I try to access test1.domain everithing works fine. If I try to
access test1001.domain after that - I get App1::Setup invoked,
instead of App1001::Setup

after a restart I am able to work with test1001.domain correctly, but
after that test1.domain invoces App1001::Setup again.

Is this as designed? Is it possible to run multiple applications with
different Perl*Handlers using virtual hosts? Any readings I've missed?


Thanks in advance.
dam

-- 
Damyan Ivanov                             Creditreform Bulgaria
[EMAIL PROTECTED]             http://www.creditreform.bg/
phone: +359 2 928 2611, 929 3993           fax: +359 2 920 0994
mobile: +359 88 566067                             ICQ: 3028500

Attachment: msg31599/pgp00000.pgp
Description: PGP signature

Reply via email to