mod_cgid.html revision 1319d315ae7b55c02ea1cfb4c6843c04059bca76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>Apache module mod_cgi</title>
</head>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<!--#include virtual="header.html" -->
<h1 align="CENTER">Module mod_cgid</h1>
<p>This module provides for execution of CGI scripts using an
external CGI daemon.</p>
<p><a href="module-dict.html#Status"
rel="Help"><strong>Status:</strong></a> Base (unix threaded
MPMs only)<br />
<a href="module-dict.html#SourceFile"
rel="Help"><strong>Source File:</strong></a> mod_cgid.c<br />
<a href="module-dict.html#ModuleIdentifier"
rel="Help"><strong>Module Identifier:</strong></a>
cgid_module</p>
<h2>Summary</h2>
<p>Except for the optimizations and the additional ScriptSock
directive noted below, mod_cgid behaves similarly to mod_cgi.
<strong>See the <a href="mod_cgi.html">mod_cgi</a> Summary
for additional details about Apache and CGI.</strong></p>
<p>On certain unix operating systems, forking a process from a
multi-threaded server is a very expensive operation because the
new process will replicate all the threads of the parent
process. In order to avoid incurring this expense on each CGI
invocation, mod_cgid creates an external daemon that is
responsible for forking child processes to run CGI scripts. The
main server communicates with this daemon using a unix domain
socket.</p>
<p>This module is used by default whenever a multi-threaded MPM
is selected during the compilation process. At the user level,
this module is identical in configuration and operation to <a
href="mod_cgi.html">mod_cgi</a>. The only exception is the
additional directive <code>ScriptSock</code> which gives the
name of the socket to use for communication with the cgi
daemon.</p>
<h2>Directives</h2>
<ul>
<li><a href="mod_cgi.html#scriptlog">ScriptLog</a></li>
<li><a
href="mod_cgi.html#scriptloglength">ScriptLogLength</a></li>
<li><a
href="mod_cgi.html#scriptlogbuffer">ScriptLogBuffer</a></li>
<li><a href="#scriptsock">ScriptSock</a></li>
</ul>
<hr />
<h3><a id="scriptsock" name="scriptsock">ScriptSock</a>
directive</h3>
<p><a href="directive-dict.html#Syntax"
rel="Help"><strong>Syntax:</strong></a> Scriptsock
<em>filename</em><br />
<a href="directive-dict.html#Default"
rel="Help"><strong>Default:</strong></a> logs/cgisock<br />
<a href="directive-dict.html#Context"
rel="Help"><strong>Context:</strong></a> server config<br />
<a href="directive-dict.html#Status"
rel="Help"><strong>Status:</strong></a> Base<br />
<a href="directive-dict.html#Module"
rel="Help"><strong>Module:</strong></a> mod_cgid</p>
<p>This directive sets the name of the socket to use for
communication with the CGI daemon. The socket will be opened
using the permissions of the user who starts Apache (usually
root). To maintain the security of communications with CGI
scripts, it is important that no other user has permission to
write in the directory where the socket is located.</p>
<!--#include virtual="footer.html" -->
</body>
</html>