~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to docs/manual/mod/mod_cgid.html.en

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
 
4
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
5
              This file is generated from xml source: DO NOT EDIT
 
6
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
7
      -->
 
8
<title>mod_cgid - Apache HTTP Server</title>
 
9
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
 
10
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
 
11
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
 
12
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
 
13
<body>
 
14
<div id="page-header">
 
15
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
 
16
<p class="apache">Apache HTTP Server Version 2.2</p>
 
17
<img alt="" src="../images/feather.gif" /></div>
 
18
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
 
19
<div id="path">
 
20
<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.2</a> &gt; <a href="./">Modules</a></div>
 
21
<div id="page-content">
 
22
<div id="preamble"><h1>Apache Module mod_cgid</h1>
 
23
<div class="toplang">
 
24
<p><span>Available Languages: </span><a href="../en/mod/mod_cgid.html" title="English">&nbsp;en&nbsp;</a> |
 
25
<a href="../ja/mod/mod_cgid.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
 
26
<a href="../ko/mod/mod_cgid.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
 
27
</div>
 
28
<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Execution of CGI scripts using an
 
29
    external CGI daemon</td></tr>
 
30
<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
 
31
<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>cgid_module</td></tr>
 
32
<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_cgid.c</td></tr>
 
33
<tr><th><a href="module-dict.html#Compatibility">Compatibility:</a></th><td>Unix threaded MPMs only</td></tr></table>
 
34
<h3>Summary</h3>
 
35
 
 
36
    <p>Except for the optimizations and the additional <code class="directive"><a href="#scriptsock">ScriptSock</a></code> directive noted below,
 
37
    <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code> behaves similarly to <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>.
 
38
    <strong>See the <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code> summary for additional details
 
39
    about Apache and CGI.</strong></p>
 
40
 
 
41
    <p>On certain unix operating systems, forking a process from a
 
42
    multi-threaded server is a very expensive operation because the
 
43
    new process will replicate all the threads of the parent
 
44
    process. In order to avoid incurring this expense on each CGI
 
45
    invocation, <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code> creates an external daemon that is
 
46
    responsible for forking child processes to run CGI scripts. The
 
47
    main server communicates with this daemon using a unix domain
 
48
    socket.</p>
 
49
 
 
50
    <p>This module is used by default instead of
 
51
    <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code> whenever a multi-threaded MPM
 
52
    is selected during the compilation process. At the user level,
 
53
    this module is identical in configuration and operation to
 
54
    <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>. The only exception is the
 
55
    additional directive <code>ScriptSock</code> which gives the
 
56
    name of the socket to use for communication with the cgi
 
57
    daemon.</p>
 
58
</div>
 
59
<div id="quickview"><h3 class="directives">Directives</h3>
 
60
<ul id="toc">
 
61
<li><img alt="" src="../images/right.gif" /> <a href="mod_cgi.html#scriptlog">ScriptLog</a></li>
 
62
<li><img alt="" src="../images/right.gif" /> <a href="mod_cgi.html#scriptlogbuffer">ScriptLogBuffer</a></li>
 
63
<li><img alt="" src="../images/right.gif" /> <a href="mod_cgi.html#scriptloglength">ScriptLogLength</a></li>
 
64
<li><img alt="" src="../images/down.gif" /> <a href="#scriptsock">ScriptSock</a></li>
 
65
</ul>
 
66
<h3>See also</h3>
 
67
<ul class="seealso">
 
68
<li><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code></li>
 
69
<li><a href="../suexec.html">Running CGI programs under different
 
70
    user IDs</a></li>
 
71
</ul></div>
 
72
 
 
73
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 
74
<div class="directive-section"><h2><a name="ScriptSock" id="ScriptSock">ScriptSock</a> <a name="scriptsock" id="scriptsock">Directive</a></h2>
 
75
<table class="directive">
 
76
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>The filename prefix of the socket to use for communication with
 
77
the cgi daemon</td></tr>
 
78
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ScriptSock <var>file-path</var></code></td></tr>
 
79
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>ScriptSock logs/cgisock</code></td></tr>
 
80
<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config</td></tr>
 
81
<tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
 
82
<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_cgid</td></tr>
 
83
</table>
 
84
    <p>This directive sets the filename prefix of the socket to use for
 
85
    communication with the CGI daemon, an extension correspondening to
 
86
    the process ID of the server will be appended. The socket will be opened
 
87
    using the permissions of the user who starts Apache (usually
 
88
    root). To maintain the security of communications with CGI
 
89
    scripts, it is important that no other user has permission to
 
90
    write in the directory where the socket is located.</p>
 
91
 
 
92
    <div class="example"><h3>Example</h3><p><code>
 
93
      ScriptSock /var/run/cgid.sock
 
94
    </code></p></div>
 
95
 
 
96
 
 
97
</div>
 
98
</div>
 
99
<div class="bottomlang">
 
100
<p><span>Available Languages: </span><a href="../en/mod/mod_cgid.html" title="English">&nbsp;en&nbsp;</a> |
 
101
<a href="../ja/mod/mod_cgid.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
 
102
<a href="../ko/mod/mod_cgid.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
 
103
</div><div id="footer">
 
104
<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
 
105
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
 
106
</body></html>
 
 
b'\\ No newline at end of file'