Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PSGI web server on Apache2
C Perl
Tree: 027a9c67f7

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
t
.deps
.gitignore
LICENSE
Makefile.in
Makefile.msc
README
configure.ac
mod_psgi.c
modules.mk

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-apctl=/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

    * This module works on Apache2 which is configured by '--with-mpm=prefork'.

    * 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.

* License

See the 'LICENSE' file.

* Author

Jiro Nishiguchi <jiro@cpan.org>

Something went wrong with that request. Please try again.