Changeset 31685 for lang/perl/CatalystX-Plugin-Engine-FastCGI-Lighttpd
- Timestamp:
- 03/30/09 11:05:42 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/CatalystX-Plugin-Engine-FastCGI-Lighttpd/trunk/lib/CatalystX/Plugin/Engine/FastCGI/Lighttpd.pm
r31672 r31685 13 13 my ( $c, @args ) = @_; 14 14 15 if ( ( $args{env}{SERVER_SOFTWARE} || q{} ) !~ /lighttpd/msx ) { 15 my $env_ref = $args[1]; 16 17 if ( ( $env_ref->{SERVER_SOFTWARE} || q{} ) !~ /lighttpd/msx ) { 16 18 $c->log->warn('Do you want to apply this really?'); 17 19 } 20 18 21 if ( $c->engine ne 'Catalyst::Engine::FastCGI' ) { 19 22 $c->log->warn('Do you want to apply this really?'); 20 23 } 21 my $env_ref = $args[1]; 24 22 25 ( $env_ref->{PATH_INFO}, $env_ref->{QUERY_STRING} ) = 23 26 ( split /\?/msx, $env_ref->{REQUEST_URI}, 2 ); … … 32 35 =head1 NAME 33 36 34 CatalystX::Plugin::Engine::FastCGI::Lighttpd - [One line description of module's purpose here]37 CatalystX::Plugin::Engine::FastCGI::Lighttpd - enable to dispatch to the Catalyst via 404 handler. 35 38 36 39 =head1 VERSION … … 40 43 =head1 SYNOPSIS 41 44 42 # in MyApp.pm 45 # 1. in your MyApp.pm 46 use Catalyst qw(+CatalystX::Engine::FastCGI::Lighttpd); 47 # or 48 # __PACKAGE__->setup(qw(+CatalystX::Engine::FastCGI::Lighttpd)); 43 49 44 use Catalyst qw(+CatalystX::Engine::FastCGI::Lighttpd); 45 46 # or 47 48 __PACKAGE__->setup(qw(+CatalystX::Engine::FastCGI::Lighttpd)); 50 # 2. in your lighttpd.conf 51 server.error-handler-404 = "DISPATCH_TO_CATALYST" 52 fastcgi.server = ( "DISPATCH_TO_CATALYST" => 53 (( "socket" => "/path/to/myapp.socket", 54 "bin-path" => "/usr/bin/perl /path/to/myapp_fastcgi.pl", 55 "max-procs" => 5, 56 "check-local" => "disable" ))) 49 57 50 58 =head1 DESCRIPTION 51 59 52 =for author to fill in: 53 Write a full description of the module and its features here. 54 Use subsections (=head2, =head3) as appropriate. 60 C::E::FastCGI could not treat with PATH_INFO and QUERY_STRING correctly. 61 This module enables it. 55 62 56 63 =head1 SUBROUTINES/METHODS 57 64 58 =for author to fill in: 59 Write a separate section listing the public components of the modules 60 interface. These normally consist of either subroutines that may be 61 exported, or methods that may be called on objects belonging to the 62 classes provided by the module. 65 =head2 handle_request( $c, @args ) 66 67 It rebuild PATH_INFO and QUERY_STRING from REQUEST_URI. 63 68 64 69 =head1 DIAGNOSTICS 65 70 66 =for author to fill in:67 List every single error and warning message that the module can68 generate (even the ones that will "never happen"), with a full69 explanation of each problem, one or more likely causes, and any70 suggested remedies.71 72 71 =over 73 72 74 =item C<< Error message here, perhaps with %s placeholders>>73 =item C<<Do you want to apply this really?>> 75 74 76 [Description of error here] 77 78 =item C<< Another error message here >> 79 80 [Description of error here] 81 82 [Et cetera, et cetera] 75 This module works only on fastcgi-lighttpd. 83 76 84 77 =back … … 86 79 =head1 CONFIGURATION AND ENVIRONMENT 87 80 88 =for author to fill in:89 A full explanation of any configuration system(s) used by the90 module, including the names and locations of any configuration91 files, and the meaning of any environment variables or properties92 that can be set. These descriptions must also include details of any93 configuration language used.94 95 81 CatalystX::Plugin::Engine::FastCGI::Lighttpd requires no configuration files or environment variables. 96 82 97 83 =head1 DEPENDENCIES 98 99 =for author to fill in:100 A list of all the other modules that this module relies upon,101 including any restrictions on versions, and an indication whether102 the module is part of the standard Perl distribution, part of the103 module's distribution, or must be installed separately. ]104 84 105 85 None. … … 107 87 =head1 INCOMPATIBILITIES 108 88 109 =for author to fill in:110 A list of any modules that this module cannot be used in conjunction111 with. This may be due to name conflicts in the interface, or112 competition for system or program resources, or due to internal113 limitations of Perl (for example, many modules that use source code114 filters are mutually incompatible).115 116 89 None reported. 117 90 118 91 =head1 BUGS AND LIMITATIONS 119 120 =for author to fill in:121 A list of known problems with the module, together with some122 indication Whether they are likely to be fixed in an upcoming123 release. Also a list of restrictions on the features the module124 does provide: data types that cannot be handled, performance issues125 and the circumstances in which they may arise, practical126 limitations on the size of data sets, special cases that are not127 (yet) handled, etc.128 92 129 93 No bugs have been reported.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)