stas 2002/12/04 23:38:42 Modified: src/docs/2.0/user/handlers http.pod Log: add notes/examples that httpd handlers can be used without mod_perl response handler Revision Changes Path 1.8 +43 -2 modperl-docs/src/docs/2.0/user/handlers/http.pod Index: http.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/handlers/http.pod,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- http.pod 4 Dec 2002 03:00:33 -0000 1.7 +++ http.pod 5 Dec 2002 07:38:42 -0000 1.8 @@ -561,6 +561,14 @@ Options +ExecCGI </Location> +It's important to notice that C<PerlAccessHandler> can be configured +for any subsection of the site, no matter whether it's served by +mod_perl or not. For example to run the handler from our example for +all requests to the server simply add to I<httpd.conf>: + + <Location /> + PerlAccessHandler MyApache::BlockByIP + </Location> =head2 PerlAuthenHandler @@ -672,6 +680,19 @@ Require valid-user </Location> +Just like C<PerlAccessHandler> and other mod_perl handlers, +C<PerlAuthenHandler> can be configured for any subsection of the site, +no matter whether it's served by mod_perl or not. For example to use +the authentication handler from the last example for any requests to +the site, simply use: + + <Location /> + PerlAuthenHandler MyApache::SecretLengthAuth + AuthType Basic + AuthName "The Gate" + Require valid-user + </Location> + =head2 PerlAuthzHandler @@ -773,9 +794,16 @@ Require valid-user </Location> +And if you want to run the authentication and authorization for the +whole site, simply add: - - + <Location /> + PerlAuthenHandler MyApache::SecretLengthAuth + PerlAuthzHandler MyApache::SecretResourceAuthz + AuthType Basic + AuthName "The Secret Gate" + Require valid-user + </Location> @@ -1127,6 +1155,19 @@ and to I<logs/eric.log>: 127.0.0.1 [Sat Aug 31 01:50:39 2002] "/users/eric/test.pl" 200 8 + +It's important to notice that C<PerlLogHandler> can be configured for +any subsection of the site, no matter whether it's served by mod_perl +or not. For example to run the handler from our example for all +requests to the server simply add to I<httpd.conf>: + + <Location /> + PerlLogHandler MyApache::LogPerUser + </Location> + +Since the C<PerlLogHandler> phase is of type +C<L<RUN_ALL|docs::2.0::user::handlers::intro/item_RUN_ALL>>, all other +logging handlers will be called as well. =head2 PerlCleanupHandler
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]