Stefan Cars wrote:
Here is my code:
$s->add_config('<VirtualHost x.x.x.x>'); $s->add_config('ServerAdmin [EMAIL PROTECTED]'); $s->add_config('ServerName www.xxx.xxx'); $s->add_config('DocumentRoot /xxx/xxx/xxx'); $s->add_config('ErrorLog logs/xxx-error_log $s->add_config('</VirtualHost>');
It should be:
$s->add_config( ['<VirtualHost x.x.x.x>', 'ServerAdmin [EMAIL PROTECTED]', 'ServerName www.xxx.xxx', 'DocumentRoot /xxx/xxx/xxx', 'ErrorLog logs/xxx-error_log', '</VirtualHost>']);
or:
my $vhost = <<EOI; <VirtualHost x.x.x.x> ServerAdmin [EMAIL PROTECTED] ServerName www.xxx.xxx DocumentRoot /xxx/xxx/xxx ErrorLog logs/xxx-error_log </VirtualHost> EOI $s->add_config(split /\n/, $vhost);
opps: make the last line:
$s->add_config([split /\n/, $vhost]);
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- 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