logo       

Configuring Apache witch Perl: msg#00193

apache.mod-perl

Subject: Configuring Apache witch Perl

Hi

I try adding name virtual host from LDAP. here is code:

...
foreach $entry ($mesg->all_entries) {
my %config;
$config{ 'servername' } = $entry->get_value('servername');
$config{ 'documentroot' } = $entry->get_value('documentroot');
push @mytab,\%config;
}
$VirtualHost{'www.nethosting.pl'} = \@mytab;
...

I have some problem while apachectl configtest:

package Apache::ReadConfig;
#hashes:

%VirtualHost = (
'www.nethosting.pl' => [
{
'servername' => '...',
'documentroot' => '...'
},
];
]
);

#arrays:

#scalars:

1;
__END__
Syntax OK
Insecure dependency in eval while running with -T switch.
Callback called exit.

What's wrong?

Marek Turczyniak







<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise