1Catalyst::Engine::ApachUes2e:r:MCPo2n0t(r3i)buted Perl DCoactuamleynstta:t:iEonngine::Apache2::MP20(3)
2
3
4
6 Catalyst::Engine::Apache2::MP20 - Catalyst Apache2 mod_perl 2.x Engine
7
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 # (It is not necessary to remove the Static::Simple plugin
32 # in production; Apache will bypass Static::Simple if
33 # configured in this way)
34
35 <Location /static>
36 SetHandler default-handler
37 </Location>
38
39 # If not running at a root location in a VirtualHost,
40 # you'll probably need to set an Alias to the location
41 # of your static files, and allow access to this location:
42
43 Alias /myapp/static /filesystem/path/to/MyApp/root/static
44 <Directory /filesystem/path/to/MyApp/root/static>
45 allow from all
46 </Directory>
47 <Location /myapp/static>
48 SetHandler default-handler
49 </Location>
50
51 </VirtualHost>
52
54 This is the Catalyst engine specialized for Apache2 mod_perl version
55 2.x.
56
58 While this method is not recommended, you can also run your Catalyst
59 application via a ModPerl::Registry script.
60
61 httpd.conf:
62
63 PerlModule ModPerl::Registry
64 Alias / /var/www/MyApp/script/myapp_registry.pl/
65
66 <Directory /var/www/MyApp/script>
67 Options +ExecCGI
68 </Directory>
69
70 <Location />
71 SetHandler perl-script
72 PerlResponseHandler ModPerl::Registry
73 </Location>
74
75 script/myapp_registry.pl (you will need to create this):
76
77 #!/usr/bin/perl
78
79 use strict;
80 use warnings;
81 use MyApp;
82
83 MyApp->handle_request( Apache2::RequestUtil->request );
84
86 ok_constant
88 This class overloads some methods from "Catalyst::Engine".
89
90 unescape_uri
91
93 This class overloads some methods from "Catalyst::Engine".
94
95 unescape_uri
96
98 Catalyst, Catalyst::Engine, Catalyst::Engine::Apache2.
99
101 • Sebastian Riedel <sri@cpan.org>
102
103 • Christian Hansen <ch@ngmedia.com>
104
105 • Andy Grundman <andy@hybridized.org>
106
107 • Tomas Doran <bobtfish@bobtfish.net>
108
110 This software is copyright (c) 2010 by The "AUTHORS".
111
112 This is free software; you can redistribute it and/or modify it under
113 the same terms as the Perl 5 programming language system itself.
114
115
116
117perl v5.34.0 2022-01-20Catalyst::Engine::Apache2::MP20(3)