1Catalyst::Engine::ApachUes2e:r:MCPo2n0t(r3i)buted Perl DCoactuamleynstta:t:iEonngine::Apache2::MP20(3)
2
3
4

NAME

6       Catalyst::Engine::Apache2::MP20 - Catalyst Apache2 mod_perl 2.x Engine
7

SYNOPSIS

9           # Set up your Catalyst app as a mod_perl 2.x application in httpd.conf
10           PerlSwitches -I/var/www/MyApp/lib
11
12           # Preload your entire application
13           PerlModule MyApp
14
15           <VirtualHost *>
16               ServerName    myapp.hostname.com
17               DocumentRoot  /var/www/MyApp/root
18
19               <Location />
20                   SetHandler          modperl
21                   PerlResponseHandler MyApp
22               </Location>
23
24               # you can also run your app in any non-root location
25               <Location /some/other/path>
26                   SetHandler          perl-script
27                   PerlResponseHandler MyApp
28               </Location>
29
30               # Make sure to let Apache handle your static files
31               # (And remember to remove the Static::Simple plugin in production)
32               <Location /static>
33                   SetHandler          default-handler
34               </Location>
35           </VirtualHost>
36

DESCRIPTION

38       This is the Catalyst engine specialized for Apache2 mod_perl version
39       2.x.
40

ModPerl::Registry

42       While this method is not recommended, you can also run your Catalyst
43       application via a ModPerl::Registry script.
44
45       httpd.conf:
46
47           PerlModule ModPerl::Registry
48           Alias / /var/www/MyApp/script/myapp_registry.pl/
49
50           <Directory /var/www/MyApp/script>
51               Options +ExecCGI
52           </Directory>
53
54           <Location />
55               SetHandler          perl-script
56               PerlResponseHandler ModPerl::Registry
57           </Location>
58
59       script/myapp_registry.pl (you will need to create this):
60
61           #!/usr/bin/perl
62
63           use strict;
64           use warnings;
65           use MyApp;
66
67           MyApp->handle_request( Apache2::RequestUtil->request );
68

METHODS

70   ok_constant

SEE ALSO

72       Catalyst, Catalyst::Engine, Catalyst::Engine::Apache2.
73

AUTHORS

75       Sebastian Riedel, <sri@cpan.org>
76
77       Christian Hansen, <ch@ngmedia.com>
78
79       Andy Grundman, <andy@hybridized.org>
80
82       This program is free software, you can redistribute it and/or modify it
83       under the same terms as Perl itself.
84
85
86
87perl v5.12.0                      2007-09-14Catalyst::Engine::Apache2::MP20(3)
Impressum