Mod Perl settings.
In httpd.conf
1) PerlRequire file is commonly used for intialization during server startup time.
e.g PerlRequire perl-scripts/script_to_load_at_startup.pl
e.g PerlRequire perl-scripts/script_to_load_at_startup.pl
2) In an httpd.conf <Location /foo> or .htaccess you need:
PerlHandler sub_routine_name
This is the name of the subroutine to call to handle each request. e.g. in the PerlModule Apache::Registry this is ``Apache::Registry::handler''.
If PerlHandler is not a defined subroutine, mod_perl assumes it is a package name which defines a subroutine named ``handler''.
PerlHandler Apache::RegistryWould load Registry.pm (if it is not already) and call it's subroutine ``handler''.
1 Comments:
Wonderful and informative web site. I used information from that site its great. » »
Post a Comment
<< Home