mod_cgi.xml.ja revision d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacd
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<?xml version="1.0" encoding="iso-2022-jp"?>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<?xml-stylesheet type="text/xsl" href="/style/manual.ja.xsl"?>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<!-- English revision: 1.9 -->
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<!--
50c04f297d76a57ead2fa6b73845f7563b1fc788sf Copyright 2002-2004 Apache Software Foundation
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf Licensed under the Apache License, Version 2.0 (the "License");
50c04f297d76a57ead2fa6b73845f7563b1fc788sf you may not use this file except in compliance with the License.
50c04f297d76a57ead2fa6b73845f7563b1fc788sf You may obtain a copy of the License at
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf http://www.apache.org/licenses/LICENSE-2.0
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf Unless required by applicable law or agreed to in writing, software
50c04f297d76a57ead2fa6b73845f7563b1fc788sf distributed under the License is distributed on an "AS IS" BASIS,
50c04f297d76a57ead2fa6b73845f7563b1fc788sf WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50c04f297d76a57ead2fa6b73845f7563b1fc788sf See the License for the specific language governing permissions and
50c04f297d76a57ead2fa6b73845f7563b1fc788sf limitations under the License.
50c04f297d76a57ead2fa6b73845f7563b1fc788sf-->
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<modulesynopsis metafile="mod_cgi.xml.meta">
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<name>mod_cgi</name>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<description>CGI $B%9%/%j%W%H$N<B9T(B</description>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<status>Base</status>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<sourcefile>mod_cgi.c</sourcefile>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<identifier>cgi_module</identifier>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<summary>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <!-- XXX: Should mention Options ExecCGI
1538dfa9300693372892a358260e1dcdbf1138eapoirier is the link to howto/cgi not sufficient? -nd
50c04f297d76a57ead2fa6b73845f7563b1fc788sf -->
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <p>Mime $B%?%$%W$,(B <code>application/x-httpd-cgi</code>
bed3c2e56e8f3328e780200466b9d009093db468sf $B$G$"$k$+!"%O%s%I%i(B <code>cgi-script</code> (Apache 1.1 $B0J9_(B)
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B$,;XDj$5$l$F$$$k%U%!%$%k$O(B CGI $B%9%/%j%W%H$H$7$F07$o$l!"(B
bed3c2e56e8f3328e780200466b9d009093db468sf $B%5!<%P$K$h$j<B9T$5$l!"$=$N=PNO$,%/%i%$%"%s%H$KJV$5$l$^$9!#(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B%U%!%$%k$O!"(B<directive module="mod_mime">AddType</directive>
bed3c2e56e8f3328e780200466b9d009093db468sf $B%G%#%l%/%F%#%V$K;XDj$5$l$?(B $B3HD%;R$rL>A0$K4^$`$+!"(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <directive module="mod_alias">ScriptAlias</directive>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B%G%#%l%/%H%j$KB8:_$9$k$3$H$K$h$j$3$N%?%$%W$K$J$j$^$9!#(B</p>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <p>$B%5!<%P$,(B CGI $B%9%/%j%W%H$r<B9T$9$k$H$-$K$O!"(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <code>DOCUMENT_ROOT</code>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B$H8F$P$l$kJQ?t$r4D6-$KDI2C$7$^$9!#$3$NJQ?t$O(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <directive module="core">DocumentRoot</directive>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B$NCM$rJ];}$7$^$9!#(B</p>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <p>Apache $B$G(B CGI $B%9%/%j%W%H$r;HMQ$9$k$?$a$N%$%s%H%m%@%/%7%g%s$O!"(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <a href="/howto/cgi.html">CGI $B$K$h$kF0E*%3%s%F%s%D(B</a>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B$r;2>H$7$F$/$@$5$$!#(B</p>
bed3c2e56e8f3328e780200466b9d009093db468sf
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf <p>Unix $B$G%^%k%A%9%l%C%I$N(B MPM $B$r;H$C$F$$$k>l9g$O!"$3$N%b%8%e!<%k$N(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $BBe$o$j$K(B <module>mod_cgid</module> $B$r;H$&I,MW$,$"$j$^$9!#(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B%f!<%6%l%Y%k$G$O$3$NFs$D$N%b%8%e!<%k$OK\<AE*$K$OF10l$G$9!#(B</p>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf</summary>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<seealso><directive module="core">AcceptPathInfo</directive></seealso>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<seealso><directive module="core">Options</directive></seealso>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<seealso><directive module="mod_alias">ScriptAlias</directive></seealso>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<seealso><directive module="mod_mime">AddHandler</directive></seealso>
bed3c2e56e8f3328e780200466b9d009093db468sf<seealso><a href="/suexec.html">CGI $B%W%m%0%i%`$rJL$N%f!<%6(B ID $B$G<B9T$9$k(B</a></seealso>
bed3c2e56e8f3328e780200466b9d009093db468sf<seealso><a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI $B5,3J=q(B</a></seealso>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf<section id="env"><title>CGI $B4D6-JQ?t(B</title>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <p>$B%5!<%P$O(B <a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B5,3J(B</a> $B$G7h$a$i$l$F$$$k(B CGI
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B4D6-JQ?t$r@_Dj$7$^$9!#0J2<$N$b$N$O!">r7oIU$-$G@_Dj$5$l$^$9!#(B</p>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <dl>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <dt>PATH_INFO</dt>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <dd>$B$3$l$O(B <directive module="core"
bed3c2e56e8f3328e780200466b9d009093db468sf >AcceptPathInfo</directive> $B%G%#%l%/%F%#%V$,L@<(E*$K(B <code>off</code>
bed3c2e56e8f3328e780200466b9d009093db468sf $B$K@_Dj$5$l$F$$$k>l9g$O@_Dj$5$l$^$;$s!#%G%U%)%k%H$N!"(B
bed3c2e56e8f3328e780200466b9d009093db468sf <directive>AcceptPathInfo</directive> $B$,(B
bed3c2e56e8f3328e780200466b9d009093db468sf $B;XDj$5$l$F$$$J$$$H$-$N?6$kIq$$$G$O!"(B<module>mod_cgi</module> $B$O%Q%9>pJs(B
bed3c2e56e8f3328e780200466b9d009093db468sf (URI $B$N%9%/%j%W%H$N%U%!%$%kL>$N8e$KB3$/(B <code>/more/path/info</code>) $B$r(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B<u$1IU$1$^$9$,!"%3%"$O%5!<%P$O%Q%9>pJs$N$"$k%j%/%(%9%H$K(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $BBP$7$F(B 404 NOT FOUND $B%(%i!<$rJV$7$^$9!#(B<directive>AcceptPathInfo</directive>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B%G%#%l%/%F%#%V$r(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B>JN,$9$k$H!"(B<module>mod_cgi</module> $B$X$N%j%/%(%9%H$KBP$7$F(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <code>On</code> $B$r(B
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B@_Dj$7$?$N$HF1$88z2L$K$J$j$^$9!#(B</dd>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
50c04f297d76a57ead2fa6b73845f7563b1fc788sf <dt>REMOTE_HOST</dt>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
9c1260efa52c82c2a58e5b5f20cd6902563d95f5rbowen <dd><directive module="core">HostnameLookups</directive>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B$,(B <code>on</code> ($B%G%U%)%k%H$G$O(B off $B$G$9(B)
50c04f297d76a57ead2fa6b73845f7563b1fc788sf $B$G!"%"%/%;%9$7$F$$$k%[%9%H$N%"%I%l%9$N(B DNS
$B$N5U0z$-$,<B:]$K%[%9%HL>$r8+$D$1$?$H$-$K$N$_@_Dj$5$l$^$9!#(B</dd>
<dt>REMOTE_IDENT</dt>
<dd><directive module="core">IdentityCheck</directive>
$B$,(B <code>on</code> $B$K@_Dj$5$l$F$$$F!"%"%/%;%9$7$F$$$k%[%9%H$,(B
ident $B%W%m%H%3%k$r%5%]!<%H$7$F$$$k$H$-$K$N$_@_Dj$5$l$^$9!#(B
$B$3$l$O4JC1$K56$k$3$H$,$G$-!"%/%i%$%"%s%H$H%5!<%P$N4V$K(B
$B%W%m%-%7$,$"$l$P$^$C$?$/Lr$KN)$?$J$$$N$G!"(B
$B$3$NJQ?t$NCM$O?.MQ$G$-$J$$$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#(B
</dd>
<dt>REMOTE_USER</dt>
<dd>CGI
$B%9%/%j%W%H$KG'>Z$,I,MW$J$H$-$K$N$_@_Dj$5$l$^$9!#(B</dd>
</dl>
</section>
<section id="cgi-debug"><title>CGI $B$N%G%P%C%0(B</title>
<p>CGI $B%9%/%j%W%H$N%G%P%C%0$O!"@5$7$/F0:n$7$F$$$J$$%9%/%j%W%H$N=PNO(B
($BI8=`=PNO$H%(%i!<(B)
$B$rD4$Y$k$3$H$,$G$-$J$$$?$a$K!"Fq$7$$>uBV$,B3$$$F$$$^$7$?!#(B
$B$3$l$i$N(B Apache 1.2 $B0J9_$K$"$k(B
$B%G%#%l%/%F%#%V$O$h$j>\:Y$J%(%i!<$N%m%0<}=8$rDs6!$7$^$9!#(B</p>
<section><title>CGI $B%m%0%U%!%$%k$N=q<0(B</title>
<p>$B@_Dj$5$l$F$$$k$H$-$K$O!"(BCGI $B%(%i!<%m%0$OE,@Z$KF0:n$7$J$$$9$Y$F$N(B
CGI $B$r%m%0<}=8$7$^$9!#$=$l$>$l$N@5$7$/F0:n$7$J$$(B CGI
$B%9%/%j%W%H$O(B $BJ#?t$N9T$K$o$?$k>pJs$,%m%0<}=8$5$l$^$9!#:G=i$N(B
2 $B9T$O>o$K0J2<$N=q<0$G$9(B:</p>
<example>
%% [<var>time</var>] <var>request-line</var><br />
%% <var>HTTP-status</var> <var>CGI-script-filename</var>
</example>
<p>$B%(%i!<$,!"(BCGI $B%9%/%j%W%H$,<B9T$G$-$J$$$H$$$&$b$N$G$"$k>l9g$O!"(B
$B%m%0%U%!%$%k$O$5$i$K$b$&(B 2 $B9T=q$+$l$^$9(B:</p>
<example>
%%error<br />
<var>error-message</var>
</example>
<p>$B$=$&$G$O$J$/!"%(%i!<$,@5$7$/$J$$%X%C%@>pJs$rJV$97k2L$G$"$k>l9g(B
($B%9%/%j%W%H$N%P%0$G$"$k$3$H$,$h$/$"$j$^$9(B)$B!"(B
$B0J2<$N>pJs$,%m%0<}=8$5$l$^$9(B:</p>
<example>
%request<br />
<var>$B<u$1<h$C$?$9$Y$F$N(B HTTP $B%j%/%(%9%H%X%C%@(B</var><br />
<var>($B$b$7$"$l$P(B) POST $B$d(B PUT $B$NCf?H(B</var><br />
%response<br />
<var>CGI $B%9%/%j%W%H$K$h$j=PNO$5$l$?$9$Y$F$N%X%C%@(B</var><br />
%stdout<br />
<var>CGI $BI8=`=PNO(B</var><br />
%stderr<br />
<var>CGI $BI8=`%(%i!<(B</var><br />
</example>
<p>($B%9%/%j%W%H$,I8=`=PNO$dI8=`%(%i!<$K2?$b=PNO$7$J$+$C$?>l9g$O!"(B
%stdout $B$d(B %stderr $B$O$"$j$^$;$s(B)$B!#(B</p>
</section>
</section>
<directivesynopsis>
<name>ScriptLog</name>
<description>CGI $B%9%/%j%W%H$N%(%i!<%m%0%U%!%$%k$N>l=j(B</description>
<syntax>ScriptLog <var>file-path</var></syntax>
<contextlist><context>server config</context>
<context>virtual host</context>
</contextlist>
<modulelist><module>mod_cgi</module><module>mod_cgid</module>
</modulelist>
<usage>
<p><directive>ScriptLog</directive> $B%G%#%l%/%F%#%V$O(B CGI $B%9%/%j%W%H$N(B
$B%(%i!<%m%0%U%!%$%k$r@_Dj$7$^$9!#(B<directive>ScriptLog</directive> $B$,(B
$B@_Dj$5$l$F$$$J$$$H$-$O!"(B
$B%(%i!<%m%0$O:n@.$5$l$^$;$s!#@_Dj$5$l$F$$$k$H$-$O!"(BCGI
$B$N%(%i!<$O$9$Y$F0z?t$H$7$FM?$($i$l$F$$$k%U%!%$%kL>$K%m%0$5$l$^$9!#(B
$BAjBP%Q%9$G;XDj$5$l$F$$$k$H$-$O!"(B
<directive module="core">ServerRoot</directive>$B$+$i$NAjBP%Q%9$H$7$F(B
$B07$o$l$^$9!#(B</p>
<example><title>$BNc(B</title>
ScriptLog logs/cgi_log
</example>
<p>$B$3$N%m%0$O;R%W%m%;%9$,<B9T$5$l$F$$$k%f!<%6$H$7$F%*!<%W%s$5$l$^$9!#(B
<em>$B$9$J$o$A(B</em>$B!"(B<directive module="mpm_commmon"
>User</directive> $B%G%#%l%/%F%#%V$G;XDj$5$l$?(B
$B%f!<%6$G$9!#$3$l$O!"%9%/%j%W%H%m%0$,=q$+$l$k%G%#%l%/%H%j$,$=$N%f!<%6$G(B
$B=q$-9~$_2DG=$+!"%9%/%j%W%H%U%!%$%k$,<jF0$G:n@.$5$l!"$=$N%f!<%6$G(B
$B=q$-9~$_2DG=$K$J$C$F$$$kI,MW$,$"$k$H$$$&$3$H$G$9!#%9%/%j%W%H%m%0$r(B
$B%"%/%;%9%m%0$J$I$N$?$a$N%m%0%G%#%l%/%H%j$K=q$+$l$k$h$&$K$7$?$H$-$O!"(B
$B$=$N%G%#%l%/%H%j$r;R%W%m%;%9$r<B9T$7$F$$$k%f!<%6$N8"8B$G(B
$B=q$-9~$_2DG=$K$O(B<strong>$B$7$J$$(B</strong>$B$h$&$K$7$F$/$@$5$$!#(B</p>
<p>$B%9%/%j%W%H$N%m%0<}=8$O(B CGI $B%9%/%j%W%H$r=q$/$H$-$N(B
$B%G%P%C%0MQ$N5!G=$H$7$F0U?^$5$l$F$$$F!"DL>o$N%5!<%P$G(B
$B>o$K;HMQ$5$l$k$h$&$K$O0U?^$5$l$F$$$J$$$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#(B
$BB.EY$d8zN($O:GE,2=$5$l$F$*$i$:!"@_7W$5$l$?0J30$NJ}K!$G;HMQ$5$l$k$H(B
$B%;%-%e%j%F%#$NLdBj$,$"$k$+$b$7$l$^$;$s!#(B</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>ScriptLogLength</name>
<description>CGI $B%9%/%j%W%H$N%m%0%U%!%$%k$NBg$-$5$N>e8B(B</description>
<syntax>ScriptLogLength <var>bytes</var></syntax>
<default>ScriptLogLength 10385760</default>
<contextlist><context>server config</context>
<context>virtual host</context>
</contextlist>
<modulelist><module>mod_cgi</module><module>mod_cgid</module>
</modulelist>
<usage>
<p><directive>ScriptLogLength</directive> $B$O(B CGI $B%9%/%j%W%H$N%m%0%U%!%$%k(B
$B$NBg$-$5$r@)8B$9$k$?$a$K;HMQ$9$k$3$H$,$G$-$^$9!#%m%0%U%!%$%k$O(B
CGI $B$N%(%i!<Kh$KBgNL$N>pJs(B ($B%j%/%(%9%H$N$9$Y$F$N%X%C%@!"(B
$B$9$Y$F$N=PNO(B)$B$r%m%0$7$^$9$N$G!"$9$0$KBg$-$J%U%!%$%k$K$J$j$^$9!#(B
$B$3$NBg$-$5$N@)8B$,$J$$$3$H$K$h$kLdBj$rKI$0$?$a$K!"(B
$B$3$N%G%#%l%/%F%#%V$r;H$C$F(B CGI $B$N%m%0%U%!%$%k$N(B
$B:GBg$N%U%!%$%k%5%$%:$r@_Dj$9$k$3$H$,$G$-$^$9!#(B
$B%U%!%$%k$,$3$NBg$-$5$rD6$($?>l9g$O!"$=$l0J>e$O=q$-9~$^$l$^$;$s!#(B</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>ScriptLogBuffer</name>
<description>$B%9%/%j%W%H%m%0$K5-O?$5$l$k(B PUT $B$d(B POST $B%j%/%(%9%H$NFbMF$N>e8B(B</description>
<syntax>ScriptLogBuffer <em>bytes</em></syntax>
<default>ScriptLogBuffer 1024</default>
<contextlist><context>server config</context>
<context>virtual host</context>
</contextlist>
<modulelist><module>mod_cgi</module><module>mod_cgid</module>
</modulelist>
<usage>
<p>$BBg$-$JK\BN$r<u$1<h$C$?$H$-$K%m%0%U%!%$%k$,$9$0$KBg$-$/$J$j$9$.$k(B
$BLdBj$rHr$1$k$?$a$K!"%U%!%$%k$K%m%0<}=8$5$l$k(B PUT $B$H(B POST
$B$NK\BN$NBg$-$5$O@)8B$5$l$F$$$^$9!#%G%U%)%k%H$G$O!"(B1024
$B%P%$%H$^$G$,%m%0<}=8$5$l$^$9$,!"(B
$B$3$N%G%#%l%/%F%#%V$O$=$l$rJQ99$9$k$3$H$,$G$-$^$9!#(B
</p>
</usage>
</directivesynopsis>
</modulesynopsis>