Here is a sample of what I tried:
In httpd.conf:
PerlPostConfigHandler MyModule::PostConfig
package MyModule::PostConfig;
use strict;
use warnings;
# Apache2 Post Config Hook Phase Handler
sub handler {
my ($conf_pool, $log_pool, $temp_pool, $s) = @_;
return;
}
1;
No error, runs as far as I can tell just the same as when I return
Apache2::Const::OK.
I'm running Apache/2.2.3 and mod_perl/2.0.2 on OS X 10.4.10. -bop On Nov 12, 2007, at 5:10 PM, Philippe M. Chiasson wrote:
Boysenberry Payne wrote:In the example at: http://perl.apache.org/docs/2.0/user/handlers/ server.html#C_PerlPostConfigHandler_ the PerlPostConfigHandler subroutine returns Apache2::Const::OK. I was wondering if it mattered what it returned, and if so, what are the alternatives?It matters, only OK is a valid return value from that stage. Otherwise,you'll get this helpfull error message:[error] Callback 'MyCallback' returned 404, whereas Apache2::Const::OK (0) is the only valid return value for PerlPostConfigHandler handlers--Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm) \.org/
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.