Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple FastCGI wrapper for CGI scripts
C
branch: master

This branch is 30 commits behind gnosek:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Makefile.in
README.rst
configure.ac
fcgiwrap.8
fcgiwrap.c

README.rst

fcgiwrap

Info: Simple FastCGI wrapper for CGI scripts
Homepage: http://nginx.localdomain.pl/wiki/FcgiWrap
Author: Grzegorz Nosek <root@localdomain.pl>
Contributors: W-Mark Kubacki <wmark@hurrikane.de> Jordi Mallach <jordi@debian.org>

Features

  • very lightweight (84KB of private memory per instance)
  • fixes broken CR/LF in headers
  • handles environment in a sane way (CGI scripts get HTTP-related env. vars from FastCGI parameters and inherit all the others from fcgiwrap's environment)
  • no configuration, so you can run several sites off the same fcgiwrap pool
  • passes CGI stderr output to fcgiwrap's stderr (this is by design but stderr could be also passed to FastCGI stderr stream)

Installation

requirements

Makefile and configure script is generated by GNU autotools. Therefore you need the latter.

fcgiwrap links to dev-libs/fcgi which can be obtained from http://www.fastcgi.com/ .

procedure

To install:

autoreconf -i
./configure
make
make install

fcgiwrap will be copied to /usr/local/sbin/fcgiwrap if you did not set --prefix for configure or DESTDIR for the makefile.

usage

Most probably you will want fcgiwrap be launched by www-servers/spawn-fcgi. Or you could use the author's Perl launcher - see the homepage for that.

When running, fcgiwrap evaluates environment variables DOCUMENT_ROOT and SCRIPT_NAME, concatenates them and invokes the resulting executable (should it exist).

Something went wrong with that request. Please try again.