1Catalyst::Engine::ApachUes(e3r)Contributed Perl DocumentCaattiaolnyst::Engine::Apache(3)
2
3
4

NAME

6       Catalyst::Engine::Apache - Catalyst Apache Engines
7

SYNOPSIS

9       For example Apache configurations, see the documentation for the engine
10       that corresponds to your Apache version.
11
12       "Catalyst::Engine::Apache::MP13"  - mod_perl 1.3x
13
14       "Catalyst::Engine::Apache2::MP19" - mod_perl 1.99x
15
16       "Catalyst::Engine::Apache2::MP20" - mod_perl 2.x
17

DESCRIPTION

19       These classes provide mod_perl support for Catalyst.
20

METHODS

22   $c->engine->apache
23       Returns an "Apache", "Apache::RequestRec" or "Apache2::RequestRec"
24       object, depending on your mod_perl version.  This method is also
25       available as $c->apache.
26
27   $c->engine->return
28       If you need to return something other than OK from the mod_perl
29       handler, you may set any other Apache constant in this method.  You
30       should only use this method if you know what you are doing or bad
31       things may happen!  For example, to return DECLINED in mod_perl 2:
32
33           use Apache2::Const -compile => qw(DECLINED);
34           $c->engine->return( Apache2::Const::DECLINED );
35
36   NOTES ABOUT LOCATIONMATCH
37       The Apache engine tries to figure out the correct base path if your app
38       is running within a LocationMatch block.  For example:
39
40           <LocationMatch ^/match/(this|that)*>
41               SetHandler          modperl
42               PerlResponseHandler MyApp
43           </LocationMatch>
44
45       This will correctly set the base path to '/match/this/' or
46       '/match/that/' depending on which path was used for the request.
47
48       In some cases this may not be what you want, so you can disable this
49       behavior by adding this to your configuration:
50
51           PerlSetVar CatalystDisableLocationMatch 1
52
53   NOTES ON NON-STANDARD PORTS
54       If you wish to run your site on a non-standard port you will need to
55       use the "Port" Apache config rather than "Listen". This will result in
56       the correct port being added to urls created using "uri_for".
57
58           Port 8080
59

OVERLOADED METHODS

61       This class overloads some methods from "Catalyst::Engine".
62
63       prepare_request($r)
64       prepare_connection
65       prepare_query_parameters
66       prepare_headers
67       prepare_path
68       read_chunk
69       finalize_body
70       finalize_headers
71       write
72

SEE ALSO

74       Catalyst Catalyst::Engine.
75

AUTHORS

77       •   Sebastian Riedel <sri@cpan.org>
78
79       •   Christian Hansen <ch@ngmedia.com>
80
81       •   Andy Grundman <andy@hybridized.org>
82
83       •   Tomas Doran <bobtfish@bobtfish.net>
84
86       This software is copyright (c) 2010 by The "AUTHORS".
87
88       This is free software; you can redistribute it and/or modify it under
89       the same terms as the Perl 5 programming language system itself.
90
91
92
93perl v5.34.0                      2022-01-20       Catalyst::Engine::Apache(3)
Impressum