Show
Ignore:
Timestamp:
03/30/09 11:05:42 (4 years ago)
Author:
holidays-l
Message:

コンパイルすら通ってなかったのを修正。
ドキュメントを修正。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/CatalystX-Plugin-Engine-FastCGI-Lighttpd/trunk/lib/CatalystX/Plugin/Engine/FastCGI/Lighttpd.pm

    r31672 r31685  
    1313    my ( $c, @args ) = @_; 
    1414 
    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 ) { 
    1618        $c->log->warn('Do you want to apply this really?'); 
    1719    } 
     20 
    1821    if ( $c->engine ne 'Catalyst::Engine::FastCGI' ) { 
    1922        $c->log->warn('Do you want to apply this really?'); 
    2023    } 
    21     my $env_ref = $args[1]; 
     24 
    2225    ( $env_ref->{PATH_INFO}, $env_ref->{QUERY_STRING} ) = 
    2326      ( split /\?/msx, $env_ref->{REQUEST_URI}, 2 ); 
     
    3235=head1 NAME 
    3336 
    34 CatalystX::Plugin::Engine::FastCGI::Lighttpd - [One line description of module's purpose here] 
     37CatalystX::Plugin::Engine::FastCGI::Lighttpd - enable to dispatch to the Catalyst via 404 handler. 
    3538 
    3639=head1 VERSION 
     
    4043=head1 SYNOPSIS 
    4144 
    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)); 
    4349     
    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" ))) 
    4957 
    5058=head1 DESCRIPTION 
    5159 
    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. 
     60C::E::FastCGI could not treat with PATH_INFO and QUERY_STRING correctly. 
     61This module enables it. 
    5562 
    5663=head1 SUBROUTINES/METHODS 
    5764 
    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 
     67It rebuild PATH_INFO and QUERY_STRING from REQUEST_URI. 
    6368 
    6469=head1 DIAGNOSTICS 
    6570 
    66 =for author to fill in: 
    67     List every single error and warning message that the module can 
    68     generate (even the ones that will "never happen"), with a full 
    69     explanation of each problem, one or more likely causes, and any 
    70     suggested remedies. 
    71  
    7271=over 
    7372 
    74 =item C<< Error message here, perhaps with %s placeholders >> 
     73=item C<<Do you want to apply this really?>> 
    7574 
    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] 
     75This module works only on fastcgi-lighttpd. 
    8376 
    8477=back 
     
    8679=head1 CONFIGURATION AND ENVIRONMENT 
    8780 
    88 =for author to fill in: 
    89     A full explanation of any configuration system(s) used by the 
    90     module, including the names and locations of any configuration 
    91     files, and the meaning of any environment variables or properties 
    92     that can be set. These descriptions must also include details of any 
    93     configuration language used. 
    94  
    9581CatalystX::Plugin::Engine::FastCGI::Lighttpd requires no configuration files or environment variables. 
    9682 
    9783=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 whether 
    102     the module is part of the standard Perl distribution, part of the 
    103     module's distribution, or must be installed separately. ] 
    10484 
    10585None. 
     
    10787=head1 INCOMPATIBILITIES 
    10888 
    109 =for author to fill in: 
    110     A list of any modules that this module cannot be used in conjunction 
    111     with. This may be due to name conflicts in the interface, or 
    112     competition for system or program resources, or due to internal 
    113     limitations of Perl (for example, many modules that use source code 
    114     filters are mutually incompatible). 
    115  
    11689None reported. 
    11790 
    11891=head1 BUGS AND LIMITATIONS 
    119  
    120 =for author to fill in: 
    121     A list of known problems with the module, together with some 
    122     indication Whether they are likely to be fixed in an upcoming 
    123     release. Also a list of restrictions on the features the module 
    124     does provide: data types that cannot be handled, performance issues 
    125     and the circumstances in which they may arise, practical 
    126     limitations on the size of data sets, special cases that are not 
    127     (yet) handled, etc. 
    12892 
    12993No bugs have been reported.