1Plack::Handler::Apache2U(s3e)r Contributed Perl DocumentaPtliaocnk::Handler::Apache2(3)
2
3
4

NAME

6       Plack::Handler::Apache2 - Apache 2.0 handlers to run PSGI application
7

SYNOPSIS

9         <Location />
10         SetHandler perl-script
11         PerlResponseHandler Plack::Handler::Apache2
12         PerlSetVar psgi_app /path/to/app.psgi
13         </Location>
14
15         # Optional, preload the application in the parent like startup.pl
16         <Perl>
17         use Plack::Handler::Apache2;
18         Plack::Handler::Apache2->preload("/path/to/app.psgi");
19         </Perl>
20

DESCRIPTION

22       This is a handler module to run any PSGI application with mod_perl on
23       Apache 2.x.
24

CREATING CUSTOM HANDLER

26       If you want to create a custom handler that loads or creates PSGI
27       applications using other means than loading from ".psgi" files, you can
28       create your own handler class and use "call_app" class method to run
29       your application.
30
31         package My::ModPerl::Handler;
32         use Plack::Handler::Apache2;
33
34         sub get_app {
35           # magic!
36         }
37
38         sub handler {
39           my $r = shift;
40           my $app = get_app();
41           Plack::Handler::Apache2->call_app($r, $app);
42         }
43

AUTHOR

45       Tatsuhiko Miyagawa
46

CONTRIBUTORS

48       Paul Driver
49

SEE ALSO

51       Plack
52
53
54
55perl v5.12.3                      2011-06-22        Plack::Handler::Apache2(3)
Impressum