App-FastishCGI

 view release on metacpan or  search on metacpan

lib/App/FastishCGI.pm  view on Meta::CPAN

            socket     => $self->{socket},
            on_request => sub { $self->request_loop(@_); }
        );

    } else {
        $self->log_info( sprintf 'Listening on INET socket: %s:%s', $self->{ip}, $self->{port} );
        $fcgi = AnyEvent::FCGI->new(
            port       => $self->{port},
            host       => $self->{ip},
            on_request => sub { $self->request_loop(@_) }
        );
    }

    $self->log_info( 'Entering main listen loop using ' . $AnyEvent::MODEL );
    AnyEvent::CondVar->recv;

}

1;

__END__

=pod

=head1 NAME

App::FastishCGI - provide CGI support to webservers which don't have it

=head1 VERSION

version 0.002

=head1 INSTALLATION 

=over

=item * 
Normally, via CPAN, or

=item *
Debian sid packages available at L<https://github.com/ioanrogers/App-FastishCGI/downloads>

=back

=head1 USAGE

=head2 RUNNING

    $ fastishcgi -s /var/run/fastishcgi.sock

Try C<--options> for more options.

A systemd service file is provided in the examples folder.

=head1 NGINX CONFIGURATION:

    server {
        listen  0.0.0.0:80 default;
        root /usr/lib/cgi-bin/;
        location ~ /(.*\.cgi) {
            fastcgi_pass unix:/var/run/fastishcgi.sock;
            #fastcgi_pass 127.0.0.1:4001;
            include fastcgi_params;
            #fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/$1;
        }
     }

=head1 SEE ALSO

Originally based on L<NginxSimpleCGI|http://wiki.nginx.org/NginxSimpleCGI>

=head1 BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at
L<https://github.com/ioanrogers/App-FastishCGI/issues>.

=head1 SOURCE

The development version is on github at L<http://github.com/ioanrogers/App-FastishCGI>
and may be cloned from L<git://github.com/ioanrogers/App-FastishCGI.git>

=head1 AUTHOR

Ioan Rogers <ioan.rogers@gmail.com>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2012 by Ioan Rogers.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

=cut



( run in 2.105 seconds using v1.01-cache-2.11-cpan-64ef6c95b5d )