![]() |
![]()
| ![]() |
![]()
NAMEfcgiwrap - serve CGI applications over FastCGI SYNOPSISfcgiwrap [OPTIONS] DESCRIPTIONfcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx (and other web servers that may need it). OPTIONS
ENVIRONMENTWhen running, fcgiwrap evaluates these environment variables set by the web server calling an fcgi-script. The variables DOCUMENT_ROOT and SCRIPT_NAME will be concatenated and the resulting executable run as CGI script wrapped as FastCGI, with the remainder after the script name available as PATH_INFO. To disable PATH_INFO mangling, set up your web server to pass SCRIPT_FILENAME, which should contain the complete path to the script. Then PATH_INFO will not be modified. DOCUMENT_ROOT directory which the script resides in
SCRIPT_NAME
actual executable
SCRIPT_FILENAME
complete path to CGI script. When set, overrides
DOCUMENT_ROOT and SCRIPT_NAME
EXAMPLEThe fastest way to see fcgiwrap do something is to launch
it at the command line like this:
Most probably you will want to launch fcgiwrap by spawn-fcgi using a configuration like this: FCGI_SOCKET=/var/run/fcgiwrap.sock
Nginx can be configured to have the arbitrary CGI cgit run as FastCGI as follows: location / {
AUTHORfcgiwrap was written by Grzegorz Nosek <root@localdomain.pl> with contributions by W-Mark Kubacki <wmark@hurrikane.de>. This manual page was written by Jordi Mallach <jordi@debian.org> (with contributions by Grzegorz Nosek) for the Debian project (and may be used by others). The -p option was contributed by <takefu@airport.fm> as an addition to the FreeBSD port.
|