Christopher H. Laco wrote: > Philippe M. Chiasson wrote: > >> A sample example of what I _think_ you are trying to do would look like: >> >> <httpd.conf> >> PerlModule Catalyst >> </httpd.conf> >> >> <Catalyst.pm> >> package Catalyst; >> use Apache2::ServerUtil qw(); >> >> [... figure out where/what to configure ...] >> >> Apache2::ServerUtil->server->add_config([ >> '<Location /foo-bar>', >> ' SetHandler perl-script', >> ' PerlHandler Catalyst::Foo::Bar', >> ]); >> </Catalyst.pm> >> >> With ->add_config, you can just feed arbitrary chunks of config to >> httpd, so you >> are free to do whatever you need to do. > > Exactly. IS there an an equivilant in MP1?
Not exacrly, but pretty close. <Perl> blocks are evaluated in the Apache::ReadConfig:: namespace. Anything you place in there will be handled by the <Perl> block handler. so if in your module you put: $Apache::ReadConfig::ServerAdmin = '[EMAIL PROTECTED]'; It will be identical to if you had : <Perl> $ServerAdmin = '[EMAIL PROTECTED]'; </Perl> in your httpd.conf. -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature