Hi,

I think I'm stumbling over an issue by my in-depth knowledge of apache (or
mod-perl?) internals is messing me up.

I have two IP addrs on a system and I'd like a listener on each IP to use a
different config.  For example:

Consider the first config loaded:
------------------------------
Listen 10.1.200.28:25 smtp
AcceptFilter smtp none

LoadModule perl_module lib/httpd/mod_perl.so

<Perl>
  use lib qw( /home/smtpd/qpsmtpd.1/lib );
  use Apache::Qpsmtpd;
  $ENV{QPSMTPD_CONFIG} = "/home/smtpd/qpsmtpd.1/config";
</Perl>

<VirtualHost 10.1.200.28:25>
  PerlModule Apache::Qpsmtpd
  PerlProcessConnectionHandler Apache::Qpsmtpd
</VirtualHost>
------------------------------

And the second config loaded:
------------------------------
Listen 10.1.200.29:25 smtp
AcceptFilter smtp none

LoadModule perl_module lib/httpd/mod_perl.so

<Perl>
  use lib qw( /home/smtpd/qpsmtpd.2/lib );
  use Apache::Qpsmtpd;
  $ENV{QPSMTPD_CONFIG} = "/home/smtpd/qpsmtpd.2/config";
</Perl>

<VirtualHost 10.1.200.29:25>
  PerlModule Apache::Qpsmtpd
  PerlProcessConnectionHandler Apache::Qpsmtpd
</VirtualHost>
------------------------------

If I hit either IP address, I only get the config that's loaded last.  I'd
guess by this that the <Perl> blocks isn't discreet between the two virtual
host configs.

The httpd is: 
    Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.9-dev DAV/2
mod_perl/2.0.4 Perl/v5.10.0

Any ideas on how to build the config differently to get the result I'm
seeking?  It's not important to have a separate lib, just the config.  The
plugins are the same between them.  The configs vary wildly though.

Thanks,

peter





Reply via email to