perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Cars <ste...@snowfall.se>
Subject <Perl></Perl> in Apache 2 with mod_perl 2 (and Embperl 2)
Date Thu, 12 Feb 2004 12:23:35 GMT
Hi!

I'm having trouble getting doing some perl configuration within
<Perl></Perl> in httpd.conf with Apache 2 and mod_perl 2 (both latest
version as of today). Using this do not work:

use Apache::DBI;
use Snowfall::Database3;
use Apache::PerlSections ();
use Apache::ServerUtil ();
use Apache::Server;
my $s = Apache->server;
....
$s->add_config("<VirtualHost>");
...

Following error occurs

Can't locate object method "server" via package "Apache" at
../conf/httpd.conf line 7.


I have tried to go the "real" way of using $VirtualHost{'213....'} but the
problem occurs when I have to use RewriteRule etc, and want to have the
entries come out the same way they came into the hash (and using
Tie::IxHash isn't really working very well).  Anyone have any ideas with
that error occurs ?


Kind Regards,
Stefan Cars

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message