Re: Configuration with perl

2003-04-03 Thread Perrin Harkins
Richard Clarke wrote:
foreach my $l (qw/ErrorLog TransferLog LockFile PidFile ScoreBoardFile/) {
 $$l  = /usr/local/app/apache_modperl/logs/$l;
};
Dude, you're scaring me with that.  It looks just like $1 and $$1.

PERL_TRACE output clearly shows that half of the perl section is being
processed twice, causing a VirtualHost overlap warning.
Is it supposed to work like this?
Yes.  See 
http://perl.apache.org/docs/1.0/guide/config.html#Apache_Restarts_Twice_On_Start

I don't use Perl sections, so I've never had this problem before, but 
it seems strange that this should trigger complaints from something like 
setting a virtual host.  Maybe you should clear the virtual host 
settings at the top of your Perl code.

- Perrin



Re: Configuration with perl

2003-04-02 Thread Richard Clarke
List,
No matter what I can't understand why the following tiny perl
configuration won't work.
If I comment out $ServerRoot, it works. If I instead comment out
DocumentRoot, it works.
If I comment out $$l, it works. I don't understand :(

Perl
#!perl -w

$ServerRoot = /usr/local/app/apache_modperl;
$DocumentRoot   = /usr/local/app/static;

$PerlRequire= /usr/local/app/conf/startup.perl;

foreach my $l (qw/ErrorLog TransferLog LockFile PidFile ScoreBoardFile/) {
 $$l  = /usr/local/app/apache_modperl/logs/$l;
};

$VirtualHost{10.10.10.42:3128} = {
ServerName = mp2.local.com
   };

/Perl


startup.perl only contains,
#!/usr/bin/perl -w
use strict;

use lib qw (/usr/local/app/lib);

1;


PERL_TRACE output clearly shows that half of the perl section is being
processed twice, causing a VirtualHost overlap warning.
Is it supposed to work like this?

Richard.