1 .\" $OpenBSD: slowcgi.8,v 1.17 2022/08/06 17:11:36 op Exp $
3 .\" Copyright (c) 2013 Florian Obser <florian@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: August 6 2022 $
22 .Nd a FastCGI to CGI wrapper server
33 is a server which implements the FastCGI Protocol to execute CGI scripts.
34 FastCGI was designed to overcome the CGI protocol's scalability
35 and resource sharing limitations.
36 While CGI scripts need to be forked for every request, FastCGI scripts
37 can be kept running and handle many HTTP requests.
40 is a simple server that translates FastCGI requests to the CGI protocol.
41 It executes the requested CGI script and translates its output back to the
44 Modern web frameworks and web applications usually come with the
45 capability to run as FastCGI servers.
47 is not intended for these applications.
51 .Pa /var/www/run/slowcgi.sock ,
53 with permissions 0660.
58 and drop privileges to user
61 The options are as follows:
65 If this option is specified,
67 will run in the foreground and log to stderr.
76 effectively disables the chroot.
78 Create and bind to alternative local socket at
81 Terminate the request after
83 seconds instead of the default 120 seconds.
84 The CGI script is left to run but its standard input, output and error
88 .Pa /var/www/run/slowcgi.sock
91 and its primary group instead of the default www:www.
95 instead of default user www and
101 Enable more verbose (debug) logging.
109 .%T FastCGI Specification
113 .%A D. Robinson, K. Coar
116 .%T The Common Gateway Interface (CGI) Version 1.1
121 server first appeared in
124 .An Florian Obser Aq Mt florian@openbsd.org
127 only implements the parts of the FastCGI standard needed to execute