]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_cgid.xml
a few new translations and up-to-date patches
[apache] / docs / manual / mod / mod_cgid.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $Revision: 1.11 $ -->
5
6 <!--
7  Copyright 2002-2004 The Apache Software Foundation
8
9  Licensed under the Apache License, Version 2.0 (the "License");
10  you may not use this file except in compliance with the License.
11  You may obtain a copy of the License at
12
13      http://www.apache.org/licenses/LICENSE-2.0
14
15  Unless required by applicable law or agreed to in writing, software
16  distributed under the License is distributed on an "AS IS" BASIS,
17  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  See the License for the specific language governing permissions and
19  limitations under the License.
20 -->
21
22 <modulesynopsis metafile="mod_cgid.xml.meta">
23
24 <name>mod_cgid</name>
25 <description>Execution of CGI scripts using an
26     external CGI daemon</description>
27 <status>Base</status>
28 <sourcefile>mod_cgid.c</sourcefile>
29 <identifier>cgid_module</identifier>
30 <compatibility>Unix threaded MPMs only</compatibility>
31
32 <summary>
33     <p>Except for the optimizations and the additional <directive
34     module="mod_cgid">ScriptSock</directive> directive noted below,
35     <module>mod_cgid</module> behaves similarly to <module>mod_cgi</module>.
36     <strong>See the <module>mod_cgi</module> summary for additional details
37     about Apache and CGI.</strong></p>
38
39     <p>On certain unix operating systems, forking a process from a
40     multi-threaded server is a very expensive operation because the
41     new process will replicate all the threads of the parent
42     process. In order to avoid incurring this expense on each CGI
43     invocation, <module>mod_cgid</module> creates an external daemon that is
44     responsible for forking child processes to run CGI scripts. The
45     main server communicates with this daemon using a unix domain
46     socket.</p>
47
48     <p>This module is used by default instead of
49     <module>mod_cgi</module> whenever a multi-threaded MPM
50     is selected during the compilation process. At the user level,
51     this module is identical in configuration and operation to
52     <module>mod_cgi</module>. The only exception is the
53     additional directive <code>ScriptSock</code> which gives the
54     name of the socket to use for communication with the cgi
55     daemon.</p>
56 </summary>
57
58 <seealso><module>mod_cgi</module></seealso>
59 <seealso><a href="../suexec.html">Running CGI programs under different user IDs</a></seealso>
60
61 <directivesynopsis location="mod_cgi">
62 <name>ScriptLog</name>
63 </directivesynopsis>
64
65 <directivesynopsis location="mod_cgi">
66 <name>ScriptLogLength</name>
67 </directivesynopsis>
68
69 <directivesynopsis location="mod_cgi">
70 <name>ScriptLogBuffer</name>
71 </directivesynopsis>
72
73 <directivesynopsis>
74 <name>ScriptSock</name>
75 <description>The name of the socket to use for communication with
76 the cgi daemon</description>
77 <syntax>ScriptSock <var>file-path</var></syntax>
78 <default>ScriptSock logs/cgisock</default>
79 <contextlist><context>server config</context>
80 <context>virtual host</context></contextlist>
81
82 <usage>
83     <p>This directive sets the name of the socket to use for
84     communication with the CGI daemon. The socket will be opened
85     using the permissions of the user who starts Apache (usually
86     root). To maintain the security of communications with CGI
87     scripts, it is important that no other user has permission to
88     write in the directory where the socket is located.</p>
89
90     <example><title>Example</title>
91       ScriptSock /var/run/cgid.sock
92     </example>
93
94 </usage>
95 </directivesynopsis>
96
97 </modulesynopsis>
98