Re: Trying apache with multiple configs.

2009-12-08 Thread Peter Eisch
On 12/8/09 10:35 AM, "Ask Bjørn Hansen" wrote: > I think you could make config_dir method in Apache::Qpsmtpd that'll return a > directory name if the appropriate PerlSetVar is specified (and fall back to > $self->SUPER::config_dir(@_) if not). > Indeed. If I get my head out of my butt, the cod

Re: Trying apache with multiple configs.

2009-12-08 Thread Ask Bjørn Hansen
On Dec 8, 2009, at 6:27, Peter Eisch wrote: >> SetEnv QPSMTPD_CONFIG "/home/smtpd/qpsmtpd.2/config" >> >> > > That doesn't appear to set the value where it can be picked up: > > ... $ENV{QPSMTPD_CONFIG} must be given at > /home/smtpd/qpsmtpd.vsi/lib/Apache/Qpsmtpd.pm line 26.\n > > The Perl

Re: Trying apache with multiple configs.

2009-12-08 Thread Peter Eisch
On 12/8/09 5:54 AM, "Robin Bowes" wrote: > Not tested, but how about this: > > Listen 10.1.200.29:25 smtp > AcceptFilter smtp none > > LoadModule perl_module lib/httpd/mod_perl.so > > > use lib qw( /home/smtpd/qpsmtpd.2/lib ); > use Apache::Qpsmtpd; > > > > PerlModule Apache::Qpsmtpd

Re: Trying apache with multiple configs.

2009-12-08 Thread Robin Bowes
On 05/12/09 05:23, Peter Eisch wrote: > Consider the first config loaded: > -- > Listen 10.1.200.28:25 smtp > AcceptFilter smtp none > > LoadModule perl_module lib/httpd/mod_perl.so > > > use lib qw( /home/smtpd/qpsmtpd.1/lib ); > use Apache::Qpsmtpd; > $ENV{QPS

Trying apache with multiple configs.

2009-12-04 Thread Peter Eisch
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: -- List