public
Description: PSGI web server on Apache2
Homepage:
Clone URL: git://github.com/spiritloose/mod_psgi.git
name age message
file .deps Wed Sep 30 13:15:51 -0700 2009 Initial commit [spiritloose]
file .gitignore Sat Oct 10 11:11:30 -0700 2009 Refactored Makefile [spiritloose]
file LICENSE Wed Sep 30 13:15:51 -0700 2009 Initial commit [spiritloose]
file Makefile.in Sat Oct 17 21:10:29 -0700 2009 Added --with-prove [spiritloose]
file Makefile.msc Sun Oct 04 19:15:36 -0700 2009 win32 porting. [mattn]
file README Sat Oct 17 11:22:31 -0700 2009 --with-apctl -> --with-apachectl [spiritloose]
file configure.ac Sat Oct 17 21:14:19 -0700 2009 Check ExtUtils::Embed is installed [spiritloose]
file mod_psgi.c Sun Oct 18 01:26:31 -0700 2009 Allocate psgi_app at psgi_pre_config For the c... [spiritloose]
file modules.mk Wed Sep 30 13:15:51 -0700 2009 Initial commit [spiritloose]
directory t/ Fri Oct 16 19:50:52 -0700 2009 sendfile support. closes #1 [spiritloose]
README
This is Apache2 module mod_psgi.

* Install

    % ./configure
    % make
    % sudo make install

You can specify apxs, apachectl and perl as follows:

    % ./configure \
        --with-apxs=/path/to/apxs \
        --with-apachectl=/path/to/apachectl \
        --with-perl=/path/to/perl

Then activate it in Apache's httpd.conf file for instance
for the URL /psgi in as follows:

    # httpd.conf
    LoadModule psgi_module modules/mod_psgi.so
    <Location /psgi>
      SetHandler psgi
      PSGIApp /path/to/app.psgi
    </Location>

Then after restarting Apache via

    $ apachectl restart

* Spec

    * PSGIApp files are loaded by 'do $file' at the time of startup parent process.
    The file must return a code reference that is a PSGI application.

    * The input stream ($env->{'psgi.input'}) is not seekable.
    $env->{'psgi.input'}->seek($pos, $whence) raises an error.

* References

    * Repository: http://github.com/spiritloose/mod_psgi

    * PSGI/Plack: http://plackperl.org/

    * PSGI specification: http://search.cpan.org/perldoc?PSGI

* License

See the 'LICENSE' file.

* Author

Jiro Nishiguchi <jiro@cpan.org>