Unix and Linux Discussions Tagged with unix script |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
10 |
8,928 |
Shell Programming and Scripting |
|
|
|
3 |
1,661 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,284 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,651 |
Shell Programming and Scripting |
|
|
|
2 |
8,738 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,293 |
Shell Programming and Scripting |
|
|
|
7 |
3,223 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
2,582 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,048 |
Shell Programming and Scripting |
|
|
|
4 |
2,142 |
Shell Programming and Scripting |
|
|
|
2 |
1,878 |
Shell Programming and Scripting |
|
|
|
4 |
2,371 |
Shell Programming and Scripting |
|
|
|
4 |
2,169 |
Shell Programming and Scripting |
|
|
|
4 |
2,164 |
Shell Programming and Scripting |
|
|
|
5 |
77,076 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,965 |
Shell Programming and Scripting |
|
|
|
3 |
1,653 |
Shell Programming and Scripting |
|
|
|
2 |
2,150 |
Programming |
|
|
|
1 |
5,193 |
Shell Programming and Scripting |
|
|
|
2 |
2,941 |
Shell Programming and Scripting |
|
|
|
3 |
1,270 |
Shell Programming and Scripting |
|
|
|
4 |
2,995 |
Shell Programming and Scripting |
|
|
|
7 |
4,408 |
Shell Programming and Scripting |
|
|
|
0 |
1,952 |
Homework & Coursework Questions |
|
|
|
1 |
2,735 |
Solaris |
|
|
|
2 |
1,935 |
Shell Programming and Scripting |
|
|
|
2 |
2,884 |
Red Hat |
|
|
|
5 |
6,695 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,462 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,586 |
Shell Programming and Scripting |
|
|
|
2 |
3,628 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,836 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,620 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,111 |
Cybersecurity |
|
|
|
1 |
3,878 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,178 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,983 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
4 |
50,679 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
13,716 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
17,248 |
UNIX for Dummies Questions & Answers |
FCGIWRAP(8) System Manager's Manual FCGIWRAP(8)
NAME
fcgiwrap - serve CGI applications over FastCGI
SYNOPSIS
fcgiwrap [OPTIONS]
DESCRIPTION
fcgiwrap 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
-c number
Number of fcgiwrap processes to prefork.
-s socket_url
A URL for the listen socket to bind to. By default fcgiwrap expects a listen socket to be passed on file descriptor 0, matching the
FastCGI convention. The recommended way to deploy fcgiwrap is to run it under a process manager that takes care of opening the
socket. However, for simple configurations and one-off tests this option may be used. Valid socket_urls include
unix:/path/to/unix/socket, tcp:dot.ted.qu.ad:port and tcp6:[ipv6_addr]:port.
-h Show a help message and exit.
ENVIRONMENT
When 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 com-
plete 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
EXAMPLE
The fastest way to see fcgiwrap do something is to launch it at the command line like this:
fcgiwrap -s unix:/var/run/fcgiwrap.sock
Apart from potential permission problems etc., it should be ready to accept FastCGI requests and run CGI scripts.
Most probably you will want to launch fcgiwrap by spawn-fcgi using a configuration like this:
FCGI_SOCKET=/var/run/fcgiwrap.sock
FCGI_PROGRAM=/usr/sbin/fcgiwrap
FCGI_USER=nginx
FCGI_GROUP=www
FCGI_EXTRA_OPTIONS="-M 0700"
ALLOWED_ENV="PATH"
Nginx can be configured to have the arbitrary CGI cgit run as FastCGI as follows:
location / {
fastcgi_param DOCUMENT_ROOT /var/www/localhost/htdocs/cgit/;
fastcgi_param SCRIPT_NAME cgit;
fastcgi_pass unix:/var/run/fastcgi.sock;
}
AUTHOR
fcgiwrap 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).
Jun 3, 2010 FCGIWRAP(8)