perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: MP2: trouble in PerlSection: how to do multiple "PerlSetVar"?
Date Mon, 05 Apr 2004 12:15:40 GMT

>>did you try this:
>>
>>  push @PerlSetVar, "MasonCompRoot /var/www/$site";
>>
>>?
>>
>>IIRC most of the configurations could accept a simple string in
>>mp1, so I would expect things to be pretty much the same in
>>mp2.
> 
> 
> but this is for a virtualhost, so it hasta be a sub-item within
> a <virtualhost> hash, such as
> 
> 	...
> 	push @{$VirtualHost{'*'}}, {
> 		PerlSetVar => [
> 			MasonCompRoot => "/var/www/$dir",
> 			MasonDataDir  => "/var/cache/mason/$dir",
> 			...
> 		],
> 		ServerName => $dir,
> 		DocumentRoot => "$main/$dir",
> 		...
> 	};
> 	...

it was the full string that you ought to try:

 	push @{$VirtualHost{'*'}}, {
 		PerlSetVar => "MasonCompRoot /var/www/$dir",


> ah. so this looks like a "no can do" type of thing (despite the
> docs which say it just shifts off the minimum number of args).
> looks like i'll have to 
> 
> 	Apache->server->add_config()

if all else fails that's always available, yes.

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message