๐Ÿ“„ Viewing: mod_cgi.html.ja.utf8

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>mod_cgi - Apache HTTP ใ‚ตใƒผใƒ ใƒใƒผใ‚ธใƒงใƒณ 2.2</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
<script src="../style/scripts/prettify.min.js" type="text/javascript">
</script>

<link href="../images/favicon.ico" rel="shortcut icon" /></head>
<body>
<div id="page-header">
<p class="menu"><a href="../mod/">ใƒขใ‚ธใƒฅใƒผใƒซ</a> | <a href="../mod/directives.html">ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">็”จ่ชž</a> | <a href="../sitemap.html">ใ‚ตใ‚คใƒˆใƒžใƒƒใƒ—</a></p>
<p class="apache">Apache HTTP ใ‚ตใƒผใƒ ใƒใƒผใ‚ธใƒงใƒณ 2.2</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP ใ‚ตใƒผใƒ</a> &gt; <a href="http://httpd.apache.org/docs/">ใƒ‰ใ‚ญใƒฅใƒกใƒณใƒ†ใƒผใ‚ทใƒงใƒณ</a> &gt; <a href="../">ใƒใƒผใ‚ธใƒงใƒณ 2.2</a> &gt; <a href="./">ใƒขใ‚ธใƒฅใƒผใƒซ</a></div>
<div id="page-content">
<div id="preamble"><h1>Apache ใƒขใ‚ธใƒฅใƒผใƒซ mod_cgi</h1>
<div class="toplang">
<p><span>็ฟป่จณๆธˆใฟ่จ€่ชž: </span><a href="../en/mod/mod_cgi.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../ja/mod/mod_cgi.html" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="../ko/mod/mod_cgi.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
</div>
<div class="outofdate">ใ“ใฎๆ—ฅๆœฌ่ชž่จณใฏใ™ใงใซๅคใใชใฃใฆใ„ใ‚‹
            ๅฏ่ƒฝๆ€งใŒใ‚ใ‚Šใพใ™ใ€‚
            ๆœ€่ฟ‘ๆ›ดๆ–ฐใ•ใ‚ŒใŸๅ†…ๅฎนใ‚’่ฆ‹ใ‚‹ใซใฏ่‹ฑ่ชž็‰ˆใ‚’ใ”่ฆงไธ‹ใ•ใ„ใ€‚
        </div>
<table class="module"><tr><th><a href="module-dict.html#Description">่ชฌๆ˜Ž:</a></th><td>CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎๅฎŸ่กŒ</td></tr>
<tr><th><a href="module-dict.html#Status">ใ‚นใƒ†ใƒผใ‚ฟใ‚น:</a></th><td>Base</td></tr>
<tr><th><a href="module-dict.html#ModuleIdentifier">ใƒขใ‚ธใƒฅใƒผใƒซ่ญ˜ๅˆฅๅญ:</a></th><td>cgi_module</td></tr>
<tr><th><a href="module-dict.html#SourceFile">ใ‚ฝใƒผใ‚นใƒ•ใ‚กใ‚คใƒซ:</a></th><td>mod_cgi.c</td></tr></table>
<h3>ๆฆ‚่ฆ</h3>

    

    <p>ใƒใƒณใƒ‰ใƒฉ <code>cgi-script</code>
    ใŒๆŒ‡ๅฎšใ•ใ‚Œใฆใ„ใ‚‹ใƒ•ใ‚กใ‚คใƒซใฏ CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใจใ—ใฆๆ‰ฑใ‚ใ‚Œใ€
    ใ‚ตใƒผใƒใซใ‚ˆใ‚ŠๅฎŸ่กŒใ•ใ‚Œใ€ใใฎๅ‡บๅŠ›ใŒใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใซ่ฟ”ใ•ใ‚Œใพใ™ใ€‚
    ใƒ•ใ‚กใ‚คใƒซใฏใ€<code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code>
    ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใซๆŒ‡ๅฎšใ•ใ‚ŒใŸ ๆ‹กๅผตๅญใ‚’ๅๅ‰ใซๅซใ‚€ใ‹ใ€
    <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>
    ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใซๅญ˜ๅœจใ™ใ‚‹ใ“ใจใซใ‚ˆใ‚Šใ“ใฎใƒใƒณใƒ‰ใƒฉใซใชใ‚Šใพใ™ใ€‚</p>

    <p>Apache ใง CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใ‚’ไฝฟ็”จใ™ใ‚‹ใŸใ‚ใฎใ‚คใƒณใƒˆใƒญใƒ€ใ‚ฏใ‚ทใƒงใƒณใฏใ€
    <a href="../howto/cgi.html">CGI ใซใ‚ˆใ‚‹ๅ‹•็š„ใ‚ณใƒณใƒ†ใƒณใƒ„</a>
    ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚</p>

    <p>Unix ใงใƒžใƒซใƒใ‚นใƒฌใƒƒใƒ‰ใฎ MPM ใ‚’ไฝฟใฃใฆใ„ใ‚‹ๅ ดๅˆใฏใ€ใ“ใฎใƒขใ‚ธใƒฅใƒผใƒซใฎ
    ไปฃใ‚ใ‚Šใซ <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code> ใ‚’ไฝฟใ†ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚
    ใƒฆใƒผใ‚ถใƒฌใƒ™ใƒซใงใฏใ“ใฎไบŒใคใฎใƒขใ‚ธใƒฅใƒผใƒซใฏๆœฌ่ณช็š„ใซใฏๅŒไธ€ใงใ™ใ€‚</p>

    <p>ๅพŒๆ–นไบ’ๆ›ๆ€งใฎใŸใ‚ใ€MIME ใ‚ฟใ‚คใƒ—ใŒ<code>application/x-httpd-cgi</code>
    ใฎใƒ•ใ‚กใ‚คใƒซใซใ‚‚ CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒใƒณใƒ‰ใƒฉใŒๆœ‰ๅŠนใซใชใ‚Šใพใ™ใ€‚
    ใ“ใฎ็‹ฌ่‡ช MIME ใ‚ฟใ‚คใƒ—ใฎๅˆฉ็”จใฏ้žๆŽจๅฅจใงใ™ใ€‚</p>
</div>
<div id="quickview"><h3>ใƒˆใƒ”ใƒƒใ‚ฏ</h3>
<ul id="topics">
<li><img alt="" src="../images/down.gif" /> <a href="#env">CGI ็’ฐๅขƒๅค‰ๆ•ฐ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#cgi-debug">CGI ใฎใƒ‡ใƒใƒƒใ‚ฐ</a></li>
</ul><h3 class="directives">ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–</h3>
<ul id="toc">
<li><img alt="" src="../images/down.gif" /> <a href="#scriptlog">ScriptLog</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#scriptlogbuffer">ScriptLogBuffer</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#scriptloglength">ScriptLogLength</a></li>
</ul>
<h3>ๅ‚็…ง</h3>
<ul class="seealso">
<li><code class="directive"><a href="../mod/core.html#acceptpathinfo">AcceptPathInfo</a></code></li>
<li><code class="directive"><a href="../mod/core.html#options">Options</a></code></li>
<li><code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code></li>
<li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code></li>
<li><a href="../suexec.html">CGI ใƒ—ใƒญใ‚ฐใƒฉใƒ ใ‚’ๅˆฅใฎใƒฆใƒผใ‚ถ ID ใงๅฎŸ่กŒใ™ใ‚‹</a></li>
<li><a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ่ฆๆ ผๆ›ธ</a></li>
</ul><ul class="seealso"><li><a href="#comments_section">ใ‚ณใƒกใƒณใƒˆ</a></li></ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="env" id="env">CGI ็’ฐๅขƒๅค‰ๆ•ฐ</a></h2>
    <p>ใ‚ตใƒผใƒใฏ <a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI
    ่ฆๆ ผ</a> ใงๆฑบใ‚ใ‚‰ใ‚Œใฆใ„ใ‚‹ CGI
    ็’ฐๅขƒๅค‰ๆ•ฐใ‚’่จญๅฎšใ—ใพใ™ใ€‚ไปฅไธ‹ใฎใ‚‚ใฎใฏใ€ๆกไปถไป˜ใใง่จญๅฎšใ•ใ‚Œใพใ™ใ€‚</p>

    <dl>
      <dt>PATH_INFO</dt>

      <dd>ใ“ใ‚Œใฏ <code class="directive"><a href="../mod/core.html#acceptpathinfo">AcceptPathInfo</a></code> ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใŒๆ˜Ž็คบ็š„ใซ <code>off</code>
      ใซ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹ๅ ดๅˆใฏ่จญๅฎšใ•ใ‚Œใพใ›ใ‚“ใ€‚ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใฎใ€
      <code class="directive">AcceptPathInfo</code> ใŒ
      ๆŒ‡ๅฎšใ•ใ‚Œใฆใ„ใชใ„ใจใใฎๆŒฏใ‚‹่ˆžใ„ใงใฏใ€<code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code> ใฏใƒ‘ใ‚นๆƒ…ๅ ฑ
      (URI ใฎใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒ•ใ‚กใ‚คใƒซๅใฎๅพŒใซ็ถšใ <code>/more/path/info</code>) ใ‚’
      ๅ—ใ‘ไป˜ใ‘ใพใ™ใŒใ€ใ‚ณใ‚ขใฎใ‚ตใƒผใƒใฏใƒ‘ใ‚นๆƒ…ๅ ฑใฎใ‚ใ‚‹ใƒชใ‚ฏใ‚จใ‚นใƒˆใซ
      ๅฏพใ—ใฆ 404 NOT FOUND ใ‚จใƒฉใƒผใ‚’่ฟ”ใ—ใพใ™ใ€‚<code class="directive">AcceptPathInfo</code>
      ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใ‚’
      ็œ็•ฅใ™ใ‚‹ใจใ€<code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code> ใธใฎใƒชใ‚ฏใ‚จใ‚นใƒˆใซๅฏพใ—ใฆ
      <code>On</code> ใ‚’
      ่จญๅฎšใ—ใŸใฎใจๅŒใ˜ๅŠนๆžœใซใชใ‚Šใพใ™ใ€‚</dd>

      <dt>REMOTE_HOST</dt>

      <dd><code class="directive"><a href="../mod/core.html#hostnamelookups">HostnameLookups</a></code>
      ใŒ <code>on</code> (ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใงใฏ off ใงใ™)
      ใงใ€ใ‚ขใ‚ฏใ‚ปใ‚นใ—ใฆใ„ใ‚‹ใƒ›ใ‚นใƒˆใฎใ‚ขใƒ‰ใƒฌใ‚นใฎ DNS
      ใฎ้€†ๅผ•ใใŒๅฎŸ้š›ใซใƒ›ใ‚นใƒˆๅใ‚’่ฆ‹ใคใ‘ใŸใจใใซใฎใฟ่จญๅฎšใ•ใ‚Œใพใ™ใ€‚</dd>

      <dt>REMOTE_IDENT</dt>

      <dd><code class="directive"><a href="../mod/core.html#identitycheck">IdentityCheck</a></code>
      ใŒ <code>on</code> ใซ่จญๅฎšใ•ใ‚Œใฆใ„ใฆใ€ใ‚ขใ‚ฏใ‚ปใ‚นใ—ใฆใ„ใ‚‹ใƒ›ใ‚นใƒˆใŒ
      ident ใƒ—ใƒญใƒˆใ‚ณใƒซใ‚’ใ‚ตใƒใƒผใƒˆใ—ใฆใ„ใ‚‹ใจใใซใฎใฟ่จญๅฎšใ•ใ‚Œใพใ™ใ€‚
      ใ“ใ‚Œใฏ็ฐกๅ˜ใซๅฝใ‚‹ใ“ใจใŒใงใใ€ใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใจใ‚ตใƒผใƒใฎ้–“ใซ
      ใƒ—ใƒญใ‚ญใ‚ทใŒใ‚ใ‚ŒใฐใพใฃใŸใๅฝนใซ็ซ‹ใŸใชใ„ใฎใงใ€
      ใ“ใฎๅค‰ๆ•ฐใฎๅ€คใฏไฟก็”จใงใใชใ„ใจใ„ใ†ใ“ใจใซๆณจๆ„ใ—ใฆใใ ใ•ใ„ใ€‚
      </dd>

      <dt>REMOTE_USER</dt>

      <dd>CGI
      ใ‚นใ‚ฏใƒชใƒ—ใƒˆใซ่ช่จผใŒๅฟ…่ฆใชใจใใซใฎใฟ่จญๅฎšใ•ใ‚Œใพใ™ใ€‚</dd>
    </dl>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="cgi-debug" id="cgi-debug">CGI ใฎใƒ‡ใƒใƒƒใ‚ฐ</a></h2>
    <p>CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒ‡ใƒใƒƒใ‚ฐใฏใ€ๆญฃใ—ใๅ‹•ไฝœใ—ใฆใ„ใชใ„ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎๅ‡บๅŠ›
    (ๆจ™ๆบ–ๅ‡บๅŠ›ใจใ‚จใƒฉใƒผ)
    ใ‚’่ชฟในใ‚‹ใ“ใจใŒใงใใชใ„ใŸใ‚ใซใ€้›ฃใ—ใ„็Šถๆ…‹ใŒ็ถšใ„ใฆใ„ใพใ—ใŸใ€‚
    ใ“ใ‚Œใ‚‰ใฎ Apache 1.2 ไปฅ้™ใซใ‚ใ‚‹
    ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใฏใ‚ˆใ‚Š่ฉณ็ดฐใชใ‚จใƒฉใƒผใฎใƒญใ‚ฐๅŽ้›†ใ‚’ๆไพ›ใ—ใพใ™ใ€‚</p>

    <h3>CGI ใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใฎๆ›ธๅผ</h3>
	<p>่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹ใจใใซใฏใ€CGI ใ‚จใƒฉใƒผใƒญใ‚ฐใฏ้ฉๅˆ‡ใซๅ‹•ไฝœใ—ใชใ„ใ™ในใฆใฎ
	CGI ใ‚’ใƒญใ‚ฐๅŽ้›†ใ—ใพใ™ใ€‚ใใ‚Œใžใ‚Œใฎๆญฃใ—ใๅ‹•ไฝœใ—ใชใ„ CGI
	ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฏ ่ค‡ๆ•ฐใฎ่กŒใซใ‚ใŸใ‚‹ๆƒ…ๅ ฑใŒใƒญใ‚ฐๅŽ้›†ใ•ใ‚Œใพใ™ใ€‚ๆœ€ๅˆใฎ
	2 ่กŒใฏๅธธใซไปฅไธ‹ใฎๆ›ธๅผใงใ™:</p>

      <div class="example"><p><code>
        %% [<var>time</var>] <var>request-line</var><br />
        %% <var>HTTP-status</var> <var>CGI-script-filename</var>
      </code></p></div>

      <p>ใ‚จใƒฉใƒผใŒใ€CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใŒๅฎŸ่กŒใงใใชใ„ใจใ„ใ†ใ‚‚ใฎใงใ‚ใ‚‹ๅ ดๅˆใฏใ€
      ใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใฏใ•ใ‚‰ใซใ‚‚ใ† 2 ่กŒๆ›ธใ‹ใ‚Œใพใ™:</p>

      <div class="example"><p><code>
        %%error<br />
        <var>error-message</var>
      </code></p></div>

      <p>ใใ†ใงใฏใชใใ€ใ‚จใƒฉใƒผใŒๆญฃใ—ใใชใ„ใƒ˜ใƒƒใƒ€ๆƒ…ๅ ฑใ‚’่ฟ”ใ™็ตๆžœใงใ‚ใ‚‹ๅ ดๅˆ
      (ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒใ‚ฐใงใ‚ใ‚‹ใ“ใจใŒใ‚ˆใใ‚ใ‚Šใพใ™)ใ€
      ไปฅไธ‹ใฎๆƒ…ๅ ฑใŒใƒญใ‚ฐๅŽ้›†ใ•ใ‚Œใพใ™:</p>

    <div class="example"><p><code>
      %request<br />
      <var>ๅ—ใ‘ๅ–ใฃใŸใ™ในใฆใฎ HTTP ใƒชใ‚ฏใ‚จใ‚นใƒˆใƒ˜ใƒƒใƒ€</var><br />
      <var>(ใ‚‚ใ—ใ‚ใ‚Œใฐ) POST ใ‚„ PUT ใฎไธญ่บซ</var><br />
      %response<br />
      <var>CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใซใ‚ˆใ‚Šๅ‡บๅŠ›ใ•ใ‚ŒใŸใ™ในใฆใฎใƒ˜ใƒƒใƒ€</var><br />
      %stdout<br />
      <var>CGI ๆจ™ๆบ–ๅ‡บๅŠ›</var><br />
      %stderr<br />
      <var>CGI ๆจ™ๆบ–ใ‚จใƒฉใƒผ</var><br />
    </code></p></div>

    <p>(ใ‚นใ‚ฏใƒชใƒ—ใƒˆใŒๆจ™ๆบ–ๅ‡บๅŠ›ใ‚„ๆจ™ๆบ–ใ‚จใƒฉใƒผใซไฝ•ใ‚‚ๅ‡บๅŠ›ใ—ใชใ‹ใฃใŸๅ ดๅˆใฏใ€
    %stdout ใ‚„ %stderr ใฏใ‚ใ‚Šใพใ›ใ‚“)ใ€‚</p>

</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ScriptLog" id="ScriptLog">ScriptLog</a> <a name="scriptlog" id="scriptlog">ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ˜Ž:</a></th><td>CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใ‚จใƒฉใƒผใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใฎๅ ดๆ‰€</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆง‹ๆ–‡:</a></th><td><code>ScriptLog <var>file-path</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใ‚ณใƒณใƒ†ใ‚ญใ‚นใƒˆ:</a></th><td>ใ‚ตใƒผใƒ่จญๅฎšใƒ•ใ‚กใ‚คใƒซ, ใƒใƒผใƒใƒฃใƒซใƒ›ใ‚นใƒˆ</td></tr>
<tr><th><a href="directive-dict.html#Status">ใ‚นใƒ†ใƒผใ‚ฟใ‚น:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใƒขใ‚ธใƒฅใƒผใƒซ:</a></th><td><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>, <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code></td></tr>
</table>
    <p><code class="directive">ScriptLog</code> ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใฏ CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎ
    ใ‚จใƒฉใƒผใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใ‚’่จญๅฎšใ—ใพใ™ใ€‚<code class="directive">ScriptLog</code> ใŒ
    ่จญๅฎšใ•ใ‚Œใฆใ„ใชใ„ใจใใฏใ€
    ใ‚จใƒฉใƒผใƒญใ‚ฐใฏไฝœๆˆใ•ใ‚Œใพใ›ใ‚“ใ€‚่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹ใจใใฏใ€CGI
    ใฎใ‚จใƒฉใƒผใฏใ™ในใฆๅผ•ๆ•ฐใจใ—ใฆไธŽใˆใ‚‰ใ‚Œใฆใ„ใ‚‹ใƒ•ใ‚กใ‚คใƒซๅใซใƒญใ‚ฐใ•ใ‚Œใพใ™ใ€‚
    ็›ธๅฏพใƒ‘ใ‚นใงๆŒ‡ๅฎšใ•ใ‚Œใฆใ„ใ‚‹ใจใใฏใ€
    <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code>ใ‹ใ‚‰ใฎ็›ธๅฏพใƒ‘ใ‚นใจใ—ใฆ
    ๆ‰ฑใ‚ใ‚Œใพใ™ใ€‚</p>

    <div class="example"><h3>ไพ‹</h3><p><code>
      ScriptLog logs/cgi_log
    </code></p></div>

    <p>ใ“ใฎใƒญใ‚ฐใฏๅญใƒ—ใƒญใ‚ปใ‚นใŒๅฎŸ่กŒใ•ใ‚Œใฆใ„ใ‚‹ใƒฆใƒผใ‚ถใจใ—ใฆใ‚ชใƒผใƒ—ใƒณใ•ใ‚Œใพใ™ใ€‚
    <em>ใ™ใชใ‚ใก</em>ใ€<code class="directive"><a href="../mod/mpm_commmon.html#user">User</a></code> ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใงๆŒ‡ๅฎšใ•ใ‚ŒใŸ
    ใƒฆใƒผใ‚ถใงใ™ใ€‚ใ“ใ‚Œใฏใ€ใ‚นใ‚ฏใƒชใƒ—ใƒˆใƒญใ‚ฐใŒๆ›ธใ‹ใ‚Œใ‚‹ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใŒใใฎใƒฆใƒผใ‚ถใง
    ๆ›ธใ่พผใฟๅฏ่ƒฝใ‹ใ€ใ‚นใ‚ฏใƒชใƒ—ใƒˆใƒ•ใ‚กใ‚คใƒซใŒๆ‰‹ๅ‹•ใงไฝœๆˆใ•ใ‚Œใ€ใใฎใƒฆใƒผใ‚ถใง
    ๆ›ธใ่พผใฟๅฏ่ƒฝใซใชใฃใฆใ„ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚‹ใจใ„ใ†ใ“ใจใงใ™ใ€‚ใ‚นใ‚ฏใƒชใƒ—ใƒˆใƒญใ‚ฐใ‚’
    ใ‚ขใ‚ฏใ‚ปใ‚นใƒญใ‚ฐใชใฉใฎใŸใ‚ใฎใƒญใ‚ฐใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใซๆ›ธใ‹ใ‚Œใ‚‹ใ‚ˆใ†ใซใ—ใŸใจใใฏใ€
    ใใฎใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใ‚’ๅญใƒ—ใƒญใ‚ปใ‚นใ‚’ๅฎŸ่กŒใ—ใฆใ„ใ‚‹ใƒฆใƒผใ‚ถใฎๆจฉ้™ใง
    ๆ›ธใ่พผใฟๅฏ่ƒฝใซใฏ<strong>ใ—ใชใ„</strong>ใ‚ˆใ†ใซใ—ใฆใใ ใ•ใ„ใ€‚</p>

    <p>ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒญใ‚ฐๅŽ้›†ใฏ CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใ‚’ๆ›ธใใจใใฎ
    ใƒ‡ใƒใƒƒใ‚ฐ็”จใฎๆฉŸ่ƒฝใจใ—ใฆๆ„ๅ›ณใ•ใ‚Œใฆใ„ใฆใ€้€šๅธธใฎใ‚ตใƒผใƒใง
    ๅธธใซไฝฟ็”จใ•ใ‚Œใ‚‹ใ‚ˆใ†ใซใฏๆ„ๅ›ณใ•ใ‚Œใฆใ„ใชใ„ใจใ„ใ†ใ“ใจใซๆณจๆ„ใ—ใฆใใ ใ•ใ„ใ€‚
    ้€Ÿๅบฆใ‚„ๅŠน็އใฏๆœ€้ฉๅŒ–ใ•ใ‚ŒใฆใŠใ‚‰ใšใ€่จญ่จˆใ•ใ‚ŒใŸไปฅๅค–ใฎๆ–นๆณ•ใงไฝฟ็”จใ•ใ‚Œใ‚‹ใจ
    ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃใฎๅ•้กŒใŒใ‚ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใ€‚</p>

</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ScriptLogBuffer" id="ScriptLogBuffer">ScriptLogBuffer</a> <a name="scriptlogbuffer" id="scriptlogbuffer">ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ˜Ž:</a></th><td>ใ‚นใ‚ฏใƒชใƒ—ใƒˆใƒญใ‚ฐใซ่จ˜้Œฒใ•ใ‚Œใ‚‹ PUT ใ‚„ POST ใƒชใ‚ฏใ‚จใ‚นใƒˆใฎๅ†…ๅฎนใฎไธŠ้™</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆง‹ๆ–‡:</a></th><td><code>ScriptLogBuffer <em>bytes</em></code></td></tr>
<tr><th><a href="directive-dict.html#Default">ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆ:</a></th><td><code>ScriptLogBuffer 1024</code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใ‚ณใƒณใƒ†ใ‚ญใ‚นใƒˆ:</a></th><td>ใ‚ตใƒผใƒ่จญๅฎšใƒ•ใ‚กใ‚คใƒซ, ใƒใƒผใƒใƒฃใƒซใƒ›ใ‚นใƒˆ</td></tr>
<tr><th><a href="directive-dict.html#Status">ใ‚นใƒ†ใƒผใ‚ฟใ‚น:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใƒขใ‚ธใƒฅใƒผใƒซ:</a></th><td><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>, <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code></td></tr>
</table>
    <p>ๅคงใใชๆœฌไฝ“ใ‚’ๅ—ใ‘ๅ–ใฃใŸใจใใซใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใŒใ™ใใซๅคงใใใชใ‚Šใ™ใŽใ‚‹
    ๅ•้กŒใ‚’้ฟใ‘ใ‚‹ใŸใ‚ใซใ€ใƒ•ใ‚กใ‚คใƒซใซใƒญใ‚ฐๅŽ้›†ใ•ใ‚Œใ‚‹ PUT ใจ POST
    ใฎๆœฌไฝ“ใฎๅคงใใ•ใฏๅˆถ้™ใ•ใ‚Œใฆใ„ใพใ™ใ€‚ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใงใฏใ€1024
    ใƒใ‚คใƒˆใพใงใŒใƒญใ‚ฐๅŽ้›†ใ•ใ‚Œใพใ™ใŒใ€
    ใ“ใฎใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใฏใใ‚Œใ‚’ๅค‰ๆ›ดใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚ 
    </p>

</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ScriptLogLength" id="ScriptLogLength">ScriptLogLength</a> <a name="scriptloglength" id="scriptloglength">ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ˜Ž:</a></th><td>CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใฎๅคงใใ•ใฎไธŠ้™</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆง‹ๆ–‡:</a></th><td><code>ScriptLogLength <var>bytes</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆ:</a></th><td><code>ScriptLogLength 10385760</code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใ‚ณใƒณใƒ†ใ‚ญใ‚นใƒˆ:</a></th><td>ใ‚ตใƒผใƒ่จญๅฎšใƒ•ใ‚กใ‚คใƒซ, ใƒใƒผใƒใƒฃใƒซใƒ›ใ‚นใƒˆ</td></tr>
<tr><th><a href="directive-dict.html#Status">ใ‚นใƒ†ใƒผใ‚ฟใ‚น:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใƒขใ‚ธใƒฅใƒผใƒซ:</a></th><td><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>, <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code></td></tr>
</table>
    <p><code class="directive">ScriptLogLength</code> ใฏ CGI ใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซ
    ใฎๅคงใใ•ใ‚’ๅˆถ้™ใ™ใ‚‹ใŸใ‚ใซไฝฟ็”จใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚ใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใฏ
    CGI ใฎใ‚จใƒฉใƒผๆฏŽใซๅคง้‡ใฎๆƒ…ๅ ฑ (ใƒชใ‚ฏใ‚จใ‚นใƒˆใฎใ™ในใฆใฎใƒ˜ใƒƒใƒ€ใ€
    ใ™ในใฆใฎๅ‡บๅŠ›)ใ‚’ใƒญใ‚ฐใ—ใพใ™ใฎใงใ€ใ™ใใซๅคงใใชใƒ•ใ‚กใ‚คใƒซใซใชใ‚Šใพใ™ใ€‚
    ใ“ใฎๅคงใใ•ใฎๅˆถ้™ใŒใชใ„ใ“ใจใซใ‚ˆใ‚‹ๅ•้กŒใ‚’้˜ฒใใŸใ‚ใซใ€
    ใ“ใฎใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–ใ‚’ไฝฟใฃใฆ CGI ใฎใƒญใ‚ฐใƒ•ใ‚กใ‚คใƒซใฎ
    ๆœ€ๅคงใฎใƒ•ใ‚กใ‚คใƒซใ‚ตใ‚คใ‚บใ‚’่จญๅฎšใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    ใƒ•ใ‚กใ‚คใƒซใŒใ“ใฎๅคงใใ•ใ‚’่ถ…ใˆใŸๅ ดๅˆใฏใ€ใใ‚ŒไปฅไธŠใฏๆ›ธใ่พผใพใ‚Œใพใ›ใ‚“ใ€‚</p>

</div>
</div>
<div class="bottomlang">
<p><span>็ฟป่จณๆธˆใฟ่จ€่ชž: </span><a href="../en/mod/mod_cgi.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../ja/mod/mod_cgi.html" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="../ko/mod/mod_cgi.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">ใ‚ณใƒกใƒณใƒˆ</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_cgi.html';
(function(w, d) {
    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
        d.write('<div id="comments_thread"><\/div>');
        var s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
    }
    else { 
        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
    }
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2015 The Apache Software Foundation.<br />ใ“ใฎๆ–‡ๆ›ธใฏ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> ใฎใƒฉใ‚คใ‚ปใƒณใ‚นใงๆไพ›ใ•ใ‚Œใฆใ„ใพใ™ใ€‚.</p>
<p class="menu"><a href="../mod/">ใƒขใ‚ธใƒฅใƒผใƒซ</a> | <a href="../mod/directives.html">ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒ†ใ‚ฃใƒ–</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">็”จ่ชž</a> | <a href="../sitemap.html">ใ‚ตใ‚คใƒˆใƒžใƒƒใƒ—</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
//--><!]]></script>
</body></html>

๐ŸŒ‘ DarkStealth โ€” WP Plugin Edition

Directory: /var/www/manual/mod