stas 2002/11/28 21:38:03 Modified: src/docs/2.0/api/mod_perl-2.0/Apache Reload.pod Log: document the new functionality in Apache::Reload (support for watching and reloading modules only in specified sub-dirs) Revision Changes Path 1.9 +22 -0 modperl-docs/src/docs/2.0/api/mod_perl-2.0/Apache/Reload.pod Index: Reload.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/mod_perl-2.0/Apache/Reload.pod,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- Reload.pod 26 Nov 2002 08:15:18 -0000 1.8 +++ Reload.pod 29 Nov 2002 05:38:03 -0000 1.9 @@ -100,6 +100,28 @@ will monitor all modules under the namespaces C<ModPerl::> and C<Apache::>. +=head2 Monitor Only Certain Sub Directories + +To reload modules only in certain directories (and their +subdirectories) add the following to the I<httpd.conf>: + + PerlModule Apache::Reload + PerlInitHandler Apache::Reload + PerlSetVar ReloadDirectories "/tmp/project1 /tmp/project2" + +You can further narrow the list of modules to be reloaded from the +chosen directories with C<ReloadModules> as in: + + PerlModule Apache::Reload + PerlInitHandler Apache::Reload + PerlSetVar ReloadDirectories "/tmp/project1 /tmp/project2" + PerlSetVar ReloadAll Off + PerlSetVar ReloadModules "MyApache::*" + +In this configuration example only modules from the namespace +C<MyApache::> found in the directories I</tmp/project1/> and +I</tmp/project2/> (and their subdirectories) will be reloaded. + =head2 Special "Touch" File You can also declare a file, which when gets C<touch(1)>ed, causes the
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]