home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / CMCD1104.ISO / Software / Complet / Apache / apache_2.0.52-win32-x86-no_ssl.msi / Data.Cab / F278257_mod_cgi.xml.ko < prev    next >
Extensible Markup Language  |  2004-07-09  |  9KB  |  227 lines

  1. <?xml version="1.0" encoding="EUC-KR" ?>
  2. <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
  3. <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
  4. <!-- English Revision: 1.8.2.4 -->
  5.  
  6. <!--
  7.  Copyright 2003-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_cgi.xml.meta">
  23.  
  24. <name>mod_cgi</name>
  25. <description>CGI ╜║┼⌐╕│╞« ╜╟╟α</description>
  26. <status>Base</status>
  27. <sourcefile>mod_cgi.c</sourcefile>
  28. <identifier>cgi_module</identifier>
  29.  
  30. <summary>
  31.     <!-- XXX: Should mention Options ExecCGI
  32.           is the link to howto/cgi not sufficient? -nd
  33.     -->
  34.  
  35.     <p>╝¡╣÷┤┬ mime type└╠ <code>application/x-httpd-cgi</code>└╠░┼│¬
  36.     (╛╞╞──í 1.1 └╠╚─) ╟┌╡Θ╖»░í <code>cgi-script</code>└╬ ╕≡╡τ
  37.     ╞─└╧└╗ CGI ╜║┼⌐╕│╞«╖╬ └╬╜─╟╧┐⌐, ╜╟╟α╟╧░φ, ▒╫ ░ß░·╕ª ┼¼╢≤└╠╛≡╞«┐í░╘
  38.     ║╕│╜┤┘. ╞─└╧└╠ <directive module="mod_mime">AddType</directive>
  39.     ┴÷╜├╛ε╖╬ ┴÷┴ñ╟╤ ╚«└σ└┌╕ª ░í┴÷░┼│¬, <directive
  40.     module="mod_alias">ScriptAlias</directive> ╡≡╖║┼Σ╕« ╛╚┐í
  41.     └╓└╕╕Θ CGI╖╬ ├│╕«╡╚┤┘.</p>
  42.  
  43.     <p>╝¡╣÷┤┬ CGI ╜║┼⌐╕│╞«╕ª ║╬╕ª╢º <code>DOCUMENT_ROOT</code>╢≤┤┬
  44.     ╚»░µ║»╝÷╕ª ├▀░í╟╤┤┘. └╠ ║»╝÷┤┬ <directive
  45.     module="core">DocumentRoot</directive> ╝│┴ñ░¬└╗ ░í┴°┤┘.</p>
  46.  
  47.     <p>╛╞╞──í┐í╝¡ CGI ╜║┼⌐╕│╞«╕ª ╗τ┐δ╟╧┤┬ ╣µ╣²┐í ┤δ╟╤ ╝╥░│┤┬
  48.     <a href="../howto/cgi.html">CGI╖╬ ╡┐└√ ╞Σ└╠┴÷ ╗²╝║</a> ┼⌡┼Σ╕«╛≤└╗
  49.     ┬ⁿ░φ╟╧╢≤.</p>
  50.  
  51.     <p>└»┤╨╜║┐í╝¡ ┤┘┴▀╛▓╖╣╡σ MPM└╗ ╗τ┐δ╟╤┤┘╕Θ └╠ ╕≡╡Γ┤δ╜┼
  52.     <module>mod_cgid</module> ╕≡╡Γ└╗ ╗τ┐δ╟╪╛▀ ╟╤┤┘. ╗τ┐δ└┌
  53.     └╘└σ┐í╝¡ └╠ ╡╬ ╕≡╡Γ└║ ▒Γ║╗└√└╕╖╬ ╡┐└╧╟╧┤┘.</p>
  54. </summary>
  55.  
  56. <seealso><directive module="core">AcceptPathInfo</directive></seealso>
  57. <seealso><directive module="core">Options</directive></seealso>
  58. <seealso><directive module="mod_alias">ScriptAlias</directive></seealso>
  59. <seealso><directive module="mod_mime">AddHandler</directive></seealso>
  60. <seealso><a href="../suexec.html">┤┘╕Ñ ╗τ┐δ└┌ ID╖╬ CGI ╟┴╖╬▒╫╖Ñ
  61. ╜╟╟α╟╧▒Γ</a></seealso>
  62. <seealso><a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ╟Ñ┴╪</a></seealso>
  63.  
  64. <section id="env"><title>CGI ╚»░µ║»╝÷</title>
  65.     <p>╝¡╣÷┤┬ ┤┘└╜░· ░░└║ ╣µ╣²└╕╖╬ <a
  66.     href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ╟Ñ┴╪</a>└╠ ╝│╕φ╟╧┤┬
  67.     CGI ╚»░µ║»╝÷╕ª ╝│┴ñ╟╤┤┘:</p>
  68.  
  69.     <dl>
  70.       <dt>PATH_INFO</dt>
  71.  
  72.       <dd>└╠ ║»╝÷┤┬ <directive module="core"
  73.       >AcceptPathInfo</directive> ┴÷╜├╛ε╕ª ┴≈┴ó <code>off</code>╖╬
  74.       ┴÷┴ñ╟╤ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘. <directive
  75.       >AcceptPathInfo</directive>░í ╛°┤┬ ░µ┐∞ ╝¡╣÷┤┬ ▒Γ║╗└√└╕╖╬
  76.       ░µ╖╬ ┴ñ║╕░í └╓┤┬ ┐Σ├╗┐í ┤δ╟╪ 404 NOT FOUND ┐└╖∙╕ª │╗┴÷╕╕,
  77.       <module>mod_cgi</module>┤┬ ░µ╖╬ ┴ñ║╕╕ª (URI┐í╝¡ ╜║┼⌐╕│╞«
  78.       ╞─└╧╕φ ╡┌┐í │¬┐└┤┬ <code>/more/path/info</code>) ╣▐┤┬┤┘.
  79.       <directive>AcceptPathInfo</directive> ┴÷╜├╛ε╕ª ╗²╖½╟╧╕Θ
  80.       <module>mod_cgi</module> ┐Σ├╗┐í ┤δ╟╪╝¡ <directive
  81.       module="core">AcceptPathInfo</directive>╕ª <code>On</code>└╕╖╬
  82.       ╝│┴ñ╟╤ ░═░· ░░┤┘.</dd>
  83.  
  84.       <dt>REMOTE_HOST</dt>
  85.  
  86.       <dd>└╠ ║»╝÷┤┬ <directive module="core"
  87.       >HostnameLookups</directive>░í <code>on</code>└╠░φ (▒Γ║╗░¬└║
  88.       off), ┴ó╝╙╟╤ ╚ú╜║╞« ┴╓╝╥╕ª ┐¬DNS ░╦╗÷╟╧┐⌐ ╜╟┴ª ╚ú╜║╞«╕φ└╗
  89.       ├ú└║ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘.</dd>
  90.  
  91.       <dt>REMOTE_IDENT</dt>
  92.  
  93.       <dd>└╠ ║»╝÷┤┬ <directive module="core"
  94.       >IdentityCheck</directive>░í <code>on</code>└╠░φ, ┴ó╝╙╟╤
  95.       ╚ú╜║╞«░í ident ╟┴╖╬┼Σ─▌└╗ ┴÷┐°╟╧┤┬ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘.
  96.       ╜▒░╘ └╠ ░¬└╗ ╝╙└╧ ╝÷ └╓▒Γ╢º╣«┐í └╠ ║»╝÷└╟ │╗┐δ└╗ ╣╧└╕╕Θ
  97.       ╛╚╡╟░φ, ┼¼╢≤└╠╛≡╞«┐═ ╝¡╣÷ ╗τ└╠┐í ╟┴╖╧╜├░í └╓┤┘╕Θ ║»╝÷
  98.       │╗┐δ└╠ ┐╧└ⁿ╚≈ ╣½└╟╣╠╟╘└╗ ┴╓└╟╟╧╢≤.</dd>
  99.  
  100.       <dt>REMOTE_USER</dt>
  101.  
  102.       <dd>CGI ╜║┼⌐╕│╞«░í └╬┴⌡└╗ ░┼├─╛▀╟╧┤┬ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘.</dd>
  103.     </dl>
  104. </section>
  105.  
  106. <section id="cgi-debug"><title>CGI ╡≡╣÷▒δ</title>
  107.     <p>╛ε╡≡┐í╝¡ └▀╕° ╜╟╟α╡╟┤┬┴÷ ╜║┼⌐╕│╞«└╟ ├Γ╖┬└╗ (╟Ñ┴╪├Γ╖┬░·
  108.     ╟Ñ┴╪┐└╖∙) ║╝ ╝÷ ╛°▒Γ╢º╣«┐í CGI ╜║┼⌐╕│╞«┤┬ └ⁿ┼δ└√└╕╖╬ ╡≡╣÷▒δ╟╧▒Γ
  109.     ╛ε╖┴┐ⁿ┤┘. ╛╞╞──í 1.2 └╠╚─┐í ├▀░í╡╚ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧╕Θ ╣▀╗²╟╤
  110.     ┐└╖∙╕ª └┌╝╝╚≈ ╖╬▒╫┐í │▓▒µ ╝÷ └╓┤┘.</p>
  111.  
  112.     <section><title>CGI ╖╬▒╫╞─└╧ ╟ⁿ╜─</title>
  113.       <p>CGI ┐└╖∙╖╬▒╫┤┬ ┴ñ╗≤└√└╕╖╬ ╜╟╟α╟╧┴÷ ╕°╟╤ CGI╕ª ▒Γ╖╧╟╤┤┘.
  114.       ┐└╖∙░í ╣▀╗²╟╤ CGI ╜║┼⌐╕│╞«┤┬ ╖╬▒╫┐í ┐⌐╖» ┴┘└╟ ┴ñ║╕╕ª │▓▒Σ┤┘.
  115.       ├╣╣°┬░ ╡╬ ┴┘└║ ╟╫╗≤ ╛╞╖í┐═ ░░└║ ╟ⁿ╜─└╠┤┘:</p>
  116.  
  117.       <example>
  118.         %% [<var>╜├░ú</var>] <var>┐Σ├╗┴┘</var><br />
  119.         %% <var>HTTP-╗≤┼┬</var> <var>CGI-╜║┼⌐╕│╞«-╞─└╧╕φ</var>
  120.       </example>
  121.  
  122.       <p>CGI ╜║┼⌐╕│╞«╕ª ╜╟╟α╟╥ ╝÷ ╛°┤┬ ┐└╖∙└╬ ░µ┐∞ ╖╬▒╫╞─└╧┐í
  123.       ├▀░í╖╬ ╡╬ ┴┘└╗ ┤⌡ ▒Γ╖╧╟╤┤┘:</p>
  124.  
  125.       <example>
  126.         %%error<br />
  127.         <var>┐└╖∙╣«</var>
  128.       </example>
  129.  
  130.       <p>╜║┼⌐╕│╞«░í (║╕┼δ ╜║┼⌐╕│╞«└╟ ╣÷▒╫╢º╣«┐í) └▀╕°╡╚ ╟∞┤⌡
  131.       ┴ñ║╕╕ª ╣▌╚»╟╧┤┬ ░µ┐∞, ┤┘└╜ │╗┐δ└╗ ╖╬▒╫┐í ▒Γ╖╧╟╤┤┘:</p>
  132.  
  133.       <example>
  134.         %request<br />
  135.         <var>╣▐└║ ╕≡╡τ HTTP ╟∞┤⌡</var><br />
  136.         <var>(└╓┤┘╕Θ) POST│¬ PUT │╗┐δ</var><br />
  137.         %response<br />
  138.         <var>CGI ╜║┼⌐╕│╞« ├Γ╖┬└╟ ╕≡╡τ ╟∞┤⌡</var><br />
  139.         %stdout<br />
  140.         <var>CGI ╟Ñ┴╪├Γ╖┬</var><br />
  141.         %stderr<br />
  142.         <var>CGI ╟Ñ┴╪┐└╖∙</var><br />
  143.       </example>
  144.  
  145.       <p>(╜║┼⌐╕│╞«░í ╟Ñ┴╪├Γ╖┬└╠│¬ ╟Ñ┴╪┐└╖∙┐í ╛╞╣½ │╗┐δ╡╡ ├Γ╖┬╟╧┴÷
  146.       ╛╩╛╥┤┘╕Θ %stdout░· %stderr ║╬║╨└║ ╗²╖½╡╔ ╝÷ └╓┤┘).</p>
  147.     </section>
  148. </section>
  149.  
  150. <directivesynopsis>
  151. <name>ScriptLog</name>
  152. <description>CGI ╜║┼⌐╕│╞« ┐└╖∙╖╬▒╫╞─└╧└╟ └º─í</description>
  153. <syntax>ScriptLog <var>file-path</var></syntax>
  154. <contextlist><context>server config</context>
  155. <context>virtual host</context></contextlist>
  156. <modulelist><module>mod_cgi</module><module>mod_cgid</module>
  157. </modulelist>
  158.  
  159. <usage>
  160.     <p><directive>ScriptLog</directive> ┴÷╜├╛ε┤┬ CGI ╜║┼⌐╕│╞«
  161.     ┐└╖∙╖╬▒╫╞─└╧└╗ ┴÷┴ñ╟╤┤┘. <directive>ScriptLog</directive>╕ª
  162.     ╗τ┐δ╟╧┴÷╛╩└╕╕Θ ┐└╖∙╖╬▒╫╕ª ╕╕╡Θ┴÷ ╛╩┤┬┤┘. ╗τ┐δ╟╧╕Θ ╛╞▒╘╕╒╞«╖╬
  163.     ┴÷┴ñ╟╤ ╞─└╧┐í CGI ┐└╖∙╕ª ▒Γ╖╧╟╤┤┘. ╗≤┤δ░µ╖╬╕ª ┴÷┴ñ╟╧╕Θ
  164.     <directive module="core">ServerRoot</directive>┐í ╗≤┤δ░µ╖╬╖╬
  165.     ╣▐╛╞╡Θ└╬┤┘.
  166.     </p>
  167.  
  168.     <example><title>┐╣┴ª</title>
  169.       ScriptLog logs/cgi_log
  170.     </example>
  171.  
  172.     <p>└┌╜─ ╟┴╖╬╝╝╜║╕ª ╜╟╟α╟╧┤┬ ╗τ┐δ└┌, <em>┴∩</em> <directive
  173.     module="mpm_common">User</directive> ┴÷╜├╛ε╖╬ ┴÷┴ñ╟╤ ╗τ┐δ└┌
  174.     ▒╟╟╤└╕╖╬ ╖╬▒╫╕ª ┐¼┤┘. ▒╫╖í╝¡ ▒╫ ╗τ┐δ└┌░í ╜║┼⌐╕│╞« ╖╬▒╫░í
  175.     └╓┤┬ ╡≡╖║┼Σ╕«┐í ╛▓▒Γ▒╟╟╤└╠ └╓┤°┴÷, ┴≈┴ó ╣╠╕« ╞─└╧└╗ ╕╕╡Θ╛ε╝¡
  176.     ▒╫ ╗τ┐δ└┌┐í░╘ ╛▓▒Γ▒╟╟╤└╗ ┴α╛▀ ╟╤┤┘. ╜║┼⌐╕│╞« ╖╬▒╫╕ª ┴╓ ╖╬▒╫
  177.     ╡≡╖║┼Σ╕«┐í ╡╨┤┘╕Θ └┌╜─ ╟┴╖╬╝╝╜║╕ª ╜╟╟α╟╧┤┬ ╗τ┐δ└┌┐í░╘ ╛▓▒Γ▒╟╟╤└╗
  178.     ┴╓▒Γ└º╟╪ ╡≡╖║┼Σ╕« ▒╟╟╤└╗ ║»░µ╟╧┴÷ <strong>╕╢╢≤</strong>.</p>
  179.  
  180.     <p>╜║┼⌐╕│╞« ╖╬▒╫┤┬ CGI ╜║┼⌐╕│╞«╕ª └█╝║╟╥╢º ╡≡╣÷▒δ└╗ └º╟╤
  181.     ┐δ╡╡└╠┴÷ ╝¡╣÷╕ª ╜╟╟α╟╧┤┬ ╡┐╛╚ ░Φ╝╙ ╗τ┐δ╟╧▒Γ└º╟╘└╠ ╛╞┤╘└╗
  182.     ┴╓└╟╟╧╢≤. ╝╙╡╡┐═ ╚┐└▓╝║╕Θ┐í╝¡ ├╓└√╚¡░í ╛╚╡╟└╓░φ, ╝│░Φ╟╤
  183.     ╕±└√└╠┐▄└╟ ╣µ╣²└╕╖╬ ╗τ┐δ╟╧╕Θ ║╕╛╚╗≤ ╣«┴ª░í ╡╔ ╝÷ └╓┤┘.</p>
  184. </usage>
  185. </directivesynopsis>
  186.  
  187. <directivesynopsis>
  188. <name>ScriptLogLength</name>
  189. <description>CGI ╜║┼⌐╕│╞« ╖╬▒╫╞─└╧└╟ ┼⌐▒Γ ┴ª╟╤</description>
  190. <syntax>ScriptLogLength <var>bytes</var></syntax>
  191. <default>ScriptLogLength 10385760</default>
  192. <contextlist><context>server config</context>
  193. <context>virtual host</context></contextlist>
  194. <modulelist><module>mod_cgi</module><module>mod_cgid</module>
  195. </modulelist>
  196.  
  197. <usage>
  198.     <p><directive>ScriptLogLength</directive>┤┬ CGI ╜║┼⌐╕│╞«
  199.     ╖╬▒╫╞─└╧└╟ ┼⌐▒Γ╕ª ┴ª╟╤╟╤┤┘. CGI ┐└╖∙░í ╣▀╗²╟╥╢º╕╢┤┘ (╕≡╡τ
  200.     ┐Σ├╗ ╟∞┤⌡, ╕≡╡τ ╜║┼⌐╕│╞« ├Γ╖┬ ╡ε) ╕╣└║ ┴ñ║╕░í ╖╬▒╫┐í
  201.     ▒Γ╖╧╡╟▒Γ╢º╣«┐í ╞─└╧└╠ ╕┼┐∞ ─┐┴· ╝÷ └╓┤┘. ╞─└╧└╠ ╣½╟╤╚≈ ─┐┴÷┤┬
  202.     ╣«┴ª╕ª ╕╖▒Γ└º╟╪ └╠ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ CGI ╖╬▒╫╞─└╧└╟ ├╓┤δ
  203.     ╞─└╧┼⌐▒Γ╕ª ╝│┴ñ╟╤┤┘. ╞─└╧└╟ ┼⌐▒Γ░í ╝│┴ñ╟╤ ░¬└╗ │╤└╕╕Θ ┤⌡
  204.     └╠╗≤ ┴ñ║╕╕ª ▒Γ╖╧╟╧┴÷╛╩┤┬┤┘.</p>
  205. </usage>
  206. </directivesynopsis>
  207.  
  208. <directivesynopsis>
  209. <name>ScriptLogBuffer</name>
  210. <description>╜║┼⌐╕│╞« ╖╬▒╫┐í ▒Γ╖╧╟╥ PUT ╚ñ└║ POST ┐Σ├╗└╟ ├╓┤δ╖«</description>
  211. <syntax>ScriptLogBuffer <var>bytes</var></syntax>
  212. <default>ScriptLogBuffer 1024</default>
  213. <contextlist><context>server config</context>
  214. <context>virtual host</context></contextlist>
  215. <modulelist><module>mod_cgi</module><module>mod_cgid</module>
  216. </modulelist>
  217.  
  218. <usage>
  219.     <p>┼½ │╗┐δ└╗ ╣▐╛╞╝¡ ╖╬▒╫╞─└╧└╠ │╩╣½ ╗í╕« ─┐┴÷┤┬ ╟÷╗≤└╗ ╕╖▒Γ└º╟╪
  220.     ╞─└╧┐í ▒Γ╖╧╟╥ PUT ╚ñ└║ POST │╗┐δ└╟ ┼⌐▒Γ╕ª ┴ª╟╤╟╤┤┘. ▒Γ║╗└√└╕╖╬
  221.     1024 ╣┘└╠╞«▒ε┴÷ ╖╬▒╫┐í ▒Γ╖╧╟╧┴÷╕╕, └╠ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐
  222.     ╝÷┴ñ╟╥ ╝÷ └╓┤┘.</p>
  223. </usage>
  224. </directivesynopsis>
  225.  
  226. </modulesynopsis>
  227.