mod_cgi.html.ja.euc-jp revision f391feab0e438617625319bc0c806ff380790250
<?xml version="1.0" encoding="EUC-JP"?>
<!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><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>mod_cgi - Apache HTTP ������</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 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="/faq/">FAQ</a> | <a href="/glossary.html">�Ѹ�</a> | <a href="/sitemap.html">�����ȥޥå�</a></p>
<p class="apache">Apache HTTP ������ ������� 2.1</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-project/">�ɥ�����ơ������</a> &gt; <a href="../">�С������ 2.1</a> &gt; <a href="./">�⥸�塼��</a></div>
<div id="page-content">
<div id="preamble"><h1>Apache �⥸�塼�� mod_cgi</h1>
<div class="toplang">
<p><span>Available Languages: </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>
<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>Mime �����פ� <code>application/x-httpd-cgi</code>
�Ǥ��뤫���ϥ�ɥ� <code>cgi-script</code> (Apache 1.1 �ʹ�)
�����ꤵ��Ƥ���ե������ CGI ������ץȤȤ��ư���졢
�����Фˤ��¹Ԥ��졢���ν��Ϥ����饤����Ȥ��֤���ޤ���
�ե�����ϡ�<code class="directive"><a href="/mod/mod_mime.html#addtype">AddType</a></code>
�ǥ��쥯�ƥ��֤˻��ꤵ�줿 ��ĥ�Ҥ�̾���˴ޤफ��
<code class="directive"><a href="/mod/mod_alias.html#scriptalias">ScriptAlias</a></code>
�ǥ��쥯�ȥ��¸�ߤ��뤳�Ȥˤ�ꤳ�Υ����פˤʤ�ޤ���</p>
<p>�����Ф� CGI ������ץȤ�¹Ԥ���Ȥ��ˤϡ�
<code>DOCUMENT_ROOT</code>
�ȸƤФ���ѿ���Ķ����ɲä��ޤ��������ѿ���
<code class="directive"><a href="/mod/core.html#documentroot">DocumentRoot</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>
</div>
<div id="quickview"><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 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>����</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></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>Available Languages: </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 id="footer">
<p class="apache">Copyright 1999-2004 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>
<p class="menu"><a href="/mod/">�⥸�塼��</a> | <a href="/mod/directives.html">�ǥ��쥯�ƥ���</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">�Ѹ�</a> | <a href="/sitemap.html">�����ȥޥå�</a></p></div>
</body></html>