cgi.xml.ja revision ff63f7e3ab777789b8112df45a0cddeff0580424
6c822625991844de5475569ff656a69965aa6affrbowen<?xml version='1.0' encoding='iso-2022-jp' ?>
c3fcea07965f59723831e23da647a77518285b8eslive<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
e942c741056732f50da2074b36fe59805d370650slive<?xml-stylesheet type="text/xsl" href="/style/manual.ja.xsl"?>
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd<manualpage metafile="cgi.xml.meta">
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd<!-- English revision: 1.6 -->
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <parentdocument href="./">How-To / $B%A%e!<%H%j%"%k(B</parentdocument>
6fbd2e53c97ea6976d93e0ac521adabc55e0fb73nd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <title>Apache Tutorial: CGI $B$K$h$kF0E*%3%s%F%s%D(B</title>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <section id="intro">
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <title>$B$O$8$a$K(B</title>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <related>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <modulelist>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <module>mod_alias</module>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <module>mod_cgi</module>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd </modulelist>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <directivelist>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <directive module="mod_mime">AddHandler</directive>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd <directive module="core">Options</directive>
7db9f691a00ead175b03335457ca296a33ddf31bnd <directive module="mod_alias">ScriptAlias</directive>
6c822625991844de5475569ff656a69965aa6affrbowen </directivelist>
6c822625991844de5475569ff656a69965aa6affrbowen </related>
c3fcea07965f59723831e23da647a77518285b8eslive
6c822625991844de5475569ff656a69965aa6affrbowen <p>CGI (Common Gateway Interface) $B$O!"%&%'%V%5!<%P$,(B
c3fcea07965f59723831e23da647a77518285b8eslive $B%3%s%F%s%D@8@.$r$9$k30It%W%m%0%i%`$H6(D4$7$FF0:n$9$k$?$a$NJ}K!$r(B
6c822625991844de5475569ff656a69965aa6affrbowen $BDj5A$7$F$$$^$9!#$=$N%W%m%0%i%`$O$7$P$7$P(B CGI $B%W%m%0%i%`$d(B
6c822625991844de5475569ff656a69965aa6affrbowen CGI $B%9%/%j%W%H$H8F$P$l$^$9!#(BCGI $B$O!"%&%'%V%5%$%H$KF0E*$J(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%3%s%F%s%D$rCV$/$?$a$N:G$b4JC1$G0lHLE*$JJ}K!$G$9!#$3$N%I%-%e%a%s%H$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen Apache $B%&%'%V%5!<%P$G(B CGI $B$r@_Dj$7!"(B
6c822625991844de5475569ff656a69965aa6affrbowen CGI $B%W%m%0%i%`$r=q$-;O$a$k$?$a$NF~Lg=q$H$J$k$G$7$g$&!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen </section>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <section id="configuring">
6c822625991844de5475569ff656a69965aa6affrbowen <title>CGI $B$r5v2D$9$k$h$&$K(B Apache $B$r@_Dj$9$k(B</title>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>CGI $B%W%m%0%i%`$r@5$7$/F0:n$5$;$k$K$O!"(BCGI $B$r5v2D$9$k$h$&$K(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd Apache $B$N@_Dj$r9T$&I,MW$,$"$j$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$l$r9T$J$&$?$a$NJ}K!$,$$$/$D$+$"$j$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <section id="scriptalias">
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <title>ScriptAlias</title>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p><directive module="mod_alias">ScriptAlias</directive>
c3fcea07965f59723831e23da647a77518285b8eslive $B%G%#%l%/%F%#%V$r;HMQ$7$F!"(B
c3fcea07965f59723831e23da647a77518285b8eslive CGI $B%W%m%0%i%`MQ$NFCJL$JJL%G%#%l%/%H%j$r(B Apache $B$K@_Dj$7$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen Apache $B$O!"$3$N%G%#%l%/%H%jCf$NA4$F$N%U%!%$%k$r(B CGI
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$G$"$k$H2>Dj$7$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$=$7$F!"$3$NFCJL$J%j%=!<%9$,%/%i%$%"%s%H$+$iMW5a$5$l$k$H!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$N%W%m%0%i%`$N<B9T$r;n$_$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p><directive module="mod_alias">ScriptAlias</directive>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper $B%G%#%l%/%F%#%V$O0J2<$N$h$&$K;HMQ$7$^$9(B:</p>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper
6c822625991844de5475569ff656a69965aa6affrbowen <example>
6c822625991844de5475569ff656a69965aa6affrbowen ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
6c822625991844de5475569ff656a69965aa6affrbowen </example>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B%G%U%)%k%H0LCV$K(B Apache $B$r%$%s%9%H!<%k$7$?$J$i$P!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$NNc$O%G%U%)%k%H>uBV$N(B <code>httpd.conf</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B@_Dj%U%!%$%k$K4^$^$l$F$$$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <directive module="mod_alias">ScriptAlias</directive>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%F%#%V$O!"(BURL $B$NA0$KIU2C$9$k%G%#%l%/%H%j$rDj5A$9$k(B
3209c0009829fcf63b6213fb9c43d534f7906006slive <directive module="mod_alias">Alias</directive>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%F%#%V$H$+$J$j;w$F$$$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <directive>Alias</directive> $B$H(B <directive>ScriptAlias</directive>
6c822625991844de5475569ff656a69965aa6affrbowen $B$ODL>o!"(B<directive module="core">DocumentRoot</directive>
d883f484445c69235c496cb800d918a4fcc94fe8nd $B%G%#%l%/%H%j30$N%G%#%l%/%H%j$N$?$a$K;HMQ$5$l$^$9!#(B
d883f484445c69235c496cb800d918a4fcc94fe8nd <directive>Alias</directive> $B$H(B <directive>ScriptAlias</directive>
d883f484445c69235c496cb800d918a4fcc94fe8nd $B$H$N:9$O!"(B<directive>ScriptAlias</directive> $B$,@\F,<-$G;O$^$k$9$Y$F$N(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd URL $B$O(B CGI $B%W%m%0%i%`$H$_$J$5$l$k$H$$$&DI2C$N0UL#$r4^$s$G$$$k$3$H$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B=>$C$F!">e5-$NNc$G$O!"(B<code>/cgi-bin/</code>
6c822625991844de5475569ff656a69965aa6affrbowen $B$G;O$^$k%j%=!<%9$X$N$"$i$f$k%j%/%(%9%H$KBP$7$F!"%G%#%l%/%H%j(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <code>/usr/local/apache/cgi-bin/</code> $B$+$iDs6!$7!"$=$l$i$r(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd CGI $B%W%m%0%i%`$H$7$F07$&$h$&(B Apache $B$K<($7$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$BNc$($P!"(BURL <code>http://dev.rcbowen.com/cgi-bin/test.pl</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$,MW5a$5$l$?>l9g!"(BApache $B$O(B $B%U%!%$%k(B
6c822625991844de5475569ff656a69965aa6affrbowen <code>/usr/local/apache/cgi-bin/test.pl</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$r<B9T$7!"$=$N=PNO$rJV$9$3$H$r;n$_$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$b$A$m$s!"%U%!%$%k$,B8:_$7!"<B9T2DG=$G$"$j!"7h$a$i$l$?J}K!$G=PNO$rJV$7$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$&$G$J$1$l$P!"(BApache $B$O%(%i!<%a%C%;!<%8$rJV$7$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <section id="nonscriptalias">
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <title>ScriptAlias $B%G%#%l%/%H%j30$N(B CGI</title>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>CGI $B%W%m%0%i%`$O!"%;%-%e%j%F%#>e$NM}M3$+$i(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <directive module="mod_alias">ScriptAlias</directive>
6c822625991844de5475569ff656a69965aa6affrbowen $B$5$l$?%G%#%l%/%H%j$K@)8B$5$l$k$3$H$,$7$P$7$P$"$j$^$9!#$3$NJ}K!$K$h$j!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd CGI $B%W%m%0%i%`$r;HMQ$G$-$k%f!<%6$r4IM}<T$,87$7$/@)8f$9$k$3$H$,$G$-$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$7$+$7$J$,$i!"E,@Z$J%;%-%e%j%F%#;vA0BP:v$,$H$i$l$k$J$i$P!"(BCGI
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$rG$0U$N%G%#%l%/%H%j$G<B9T$G$-$J$$$h$&$K$9$kM}M3$O$"$j$^$;$s!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $BNc$($P!"%f!<%6$K(B <directive module="mod_userdir">UserDir</directive>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%F%#%V$GH`$i$N%[!<%`%G%#%l%/%H%jG[2<$K%&%'%V%3%s%F%s%D$r;}$?$;$?$$$H$7$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$b$7!"H`$i$,(B CGI $B%W%m%0%i%`$r;}$D$3$H$rK>$s$G$$$F$b!"%a%$%s$N(B
6c822625991844de5475569ff656a69965aa6affrbowen <code>cgi-bin</code> $B%G%#%l%/%H%j$X$N%"%/%;%9$,$G$-$J$$>l9g!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd CGI $B%W%m%0%i%`$r<B9T$9$k$3$H$,$G$-$kB>$N>l=j$,I,MW$K$J$j$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <section id="options">
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <title>CGI $B$N<B9T$r2DG=$K$9$k$?$a$K(B Options $B$rL@<(E*$K;HMQ$9$k(B</title>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B%5!<%P$N%a%$%s$N@_Dj%U%!%$%kCf$G(B <directive module="core">Options</directive>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%F%#%V$rL@<(E*$K;HMQ$9$k$3$H$G!"FCDj$N%G%#%l%/%H%jG[2<$G(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd CGI $B$N<B9T$r5v2D$9$k$h$&$K;XDj$9$k$3$H$,$G$-$^$9(B:</p>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <example>
77b840c850ef60fd6a119f3a7e907412d78b77d5nd &lt;Directory /usr/local/apache/htdocs/somedir&gt;<br />
77b840c850ef60fd6a119f3a7e907412d78b77d5nd <indent>
77b840c850ef60fd6a119f3a7e907412d78b77d5nd Options +ExecCGI<br />
77b840c850ef60fd6a119f3a7e907412d78b77d5nd </indent>
6c822625991844de5475569ff656a69965aa6affrbowen &lt;/Directory&gt;
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B>e5-%G%#%l%/%F%#%V$O!"(BCGI $B%U%!%$%k$N<B9T$r2DG=$K$9$k$h$&(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd Apache $B$KEA$($^$9!#$^$?!"$I$N%U%!%$%k$,(B CGI $B%U%!%$%k$+$r(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%5!<%P$KEA$($kI,MW$,$"$j$^$9!#<!$N(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <directive module="mod_mime">AddHandler</directive>
6c822625991844de5475569ff656a69965aa6affrbowen $B%G%#%l%/%F%#%V$NNc$G$O!"(B<code>cgi</code> $B$^$?$O(B <code>pl</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$r3HD%;R$K;}$D$9$Y$F$N%U%!%$%k$r(B CGI
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$H$7$F$_$J$9$3$H$r%5!<%P$KEA$($^$9(B:</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd AddHandler cgi-script cgi pl
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </example>
6c822625991844de5475569ff656a69965aa6affrbowen </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <section id="htaccess">
6c822625991844de5475569ff656a69965aa6affrbowen <title>.htaccess files</title>
9176f5c945b7a6eafad180636752d28de5cbc494trawick
349eb1baf455be0d2b9009dab951e5b1ba13dd2ftrawick <p><a href="htaccess.html"><code>.htaccess</code>
349eb1baf455be0d2b9009dab951e5b1ba13dd2ftrawick $B%U%!%$%k(B</a>$B$O!"%G%#%l%/%H%jKh$K%G%#%l%/%F%#%V$r;XDj$9$kJ}K!$G$9!#(B
349eb1baf455be0d2b9009dab951e5b1ba13dd2ftrawick Apache $B$O!"%j%=!<%9$rDs6!$9$k$H$-$K!"(B
9176f5c945b7a6eafad180636752d28de5cbc494trawick $BDs6!$9$k%U%!%$%k$,CV$+$l$F$$$k%G%#%l%/%H%jCf$N(B <code>.htaccess</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$H$$$&%U%!%$%k$r;2>H$7$^$9!#$=$N%U%!%$%k$rH/8+$7$?$i!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$NCf$GH/8+$5$l$?%G%#%l%/%F%#%V$,E,MQ$5$l$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <code>.htaccess</code> $B%U%!%$%k$O!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <directive module="core">AllowOverride</directive>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%F%#%V$N;XDj$K$h$j;H$($k$h$&$K$J$j$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen <directive module="core">AllowOverride</directive>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%F%#%V$O!"(B<code>.htaccess</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%U%!%$%k$G!"$I$N%?%$%W$N%G%#%l%/%F%#%V$,@_Dj$G$-$k$+!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$"$k$$$OA4$/;XDj$G$-$J$$$+$r;XDj$7$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$NL\E*$KI,MW$K$J$k%G%#%l%/%F%#%V$r;HMQ$G$-$k$h$&$K$9$k$K$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%5!<%P$N%a%$%s$N@_Dj$G!"0J2<$N@_Dj$,I,MW$K$J$j$^$9(B:</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd AllowOverride Options
6c822625991844de5475569ff656a69965aa6affrbowen </example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p><code>.htaccess</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%U%!%$%k$G$O!"<!$N%G%#%l%/%F%#%V$,I,MW$H$J$j$^$9(B:</p>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd Options +ExecCGI
6c822625991844de5475569ff656a69965aa6affrbowen </example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B$3$N@_Dj$G$O!"$3$N%G%#%l%/%H%j$K$*$1$k(B CGI
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$N<B9T$r5v2D$9$k$h$&(B Apache $B$KEA$($^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <section id="writing">
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <title>CGI $B%W%m%0%i%`$r=q$/(B</title>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B!VDL>o$N!W%W%m%0%i%_%s%0$H(B CGI
6c822625991844de5475569ff656a69965aa6affrbowen $B%W%m%0%i%_%s%0$N4V$K$O<g$KFs$D$N0c$$$,$"$j$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B0l$D$O!"(BCGI $B%W%m%0%i%`$N$9$Y$F$N=PNO$K$O(B MIME-type
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%X%C%@$rIU$1$J$1$l$P$J$j$^$;$s!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$3$l$O$I$N$h$&$J<oN`$N%3%s%F%s%D$r<u$1<h$C$F$$$k$+$r%/%i%$%"%s%H$K<($9(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd HTTP $B%X%C%@$G$9!#$[$H$s$I$N>l9g$G$O!"<!$N$h$&$K=PNO$7$^$9(B:</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd Content-type: text/html
3209c0009829fcf63b6213fb9c43d534f7906006slive </example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B$b$&0l$D$O!"=PNO$r(B HTML
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$+!"%V%i%&%6$,I=<($9$k$3$H$,$G$-$k2?$+B>$N7A<0$K$9$kI,MW$,$"$j$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BBgDq$N>l9g$O(B HTML $B$G$7$g$&$,!"(BGIF $B%$%a!<%8$dB>$NHs(B HTML
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%3%s%F%s%D$r=PNO$9$k(B CGI $B%W%m%0%i%`$r=q$/$3$H$b$"$k$G$7$g$&!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B$3$l$iFsE@0J30$G$O!"(BCGI $B%W%m%0%i%`$r=q$/$3$H$O!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$"$J$?$,=q$$$F$$$kB>$N%W%m%0%i%`$H$h$/;w$F$$$k$G$7$g$&!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <section id="firstcgi">
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <title>$B:G=i$N(B CGI $B%W%m%0%i%`(B</title>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B<!$K<($9$N$O!"%V%i%&%6$K(B 1 $B9T0u;z$9$k(B CGI
481c1206b6065a8f37ab75ca1fc26c947cb37852ianh $B%W%m%0%i%`$NNc$G$9!#0J2<$rF~NO$7!"(B<code>first.pl</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$H$$$&%U%!%$%k$KJ]B8$7!"$=$l$r(B <code>cgi-bin</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%G%#%l%/%H%j$KCV$$$F$/$@$5$$!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
481c1206b6065a8f37ab75ca1fc26c947cb37852ianh <example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd #!/usr/bin/perl<br />
10542e490a1b0abf5c02e022f29ea2074ca4d435nd print "Content-type: text/html\n\n";<br />
10542e490a1b0abf5c02e022f29ea2074ca4d435nd print "Hello, World.";
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </example>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>Perl $B$K@:DL$7$F$$$J$/$F$b!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B2?$,5/$3$k$+$rM}2r$9$k$3$H$O$G$-$k$G$7$g$&!#(B1 $B9TL\$O!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <code>/usr/bin/perl</code> $B$G8+$D$1$i$l$k%$%s%?%W%j%?$K(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$N%U%!%$%k$r6!5k$9$k$3$H$G$3$N%W%m%0%i%`$,<B9T$5$l$k$3$H$r(B
6c822625991844de5475569ff656a69965aa6affrbowen Apache $B$K(B ($B%7%'%k>e$G<B9T$7$h$&$H$7$F$$$k$J$i$P!"$=$N%7%'%k$K(B )
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B<($7$^$9!#(B2 $B9TL\$O!"A0=R$7$?$H$*$j(B content-type $B$NDj5A$r0u;z$7$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$l$K$OI|5"2~9T$NFs$D$NAH$r8e$KIU2C$7$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$l$K$h$j!"%X%C%@$N=*$j$K6u9T$,CV$+$l!"(BHTTP
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%X%C%@$N=*$j$H%\%G%#$N;O$^$j$r<($7$^$9!#(B3 $B9TL\$O!"(B"Hello, World."
6c822625991844de5475569ff656a69965aa6affrbowen $B$H$$$&J8;zNs$r0u;z$7!"$3$l$G=*$j$H$J$j$^$9!#(B</p>
851855c098932af3def45f72fdf693fe290bf55bslive
851855c098932af3def45f72fdf693fe290bf55bslive <p>$B9%$_$N%V%i%&%6$r3+$-!"%"%I%l%9(B</p>
851855c098932af3def45f72fdf693fe290bf55bslive
851855c098932af3def45f72fdf693fe290bf55bslive <example>
851855c098932af3def45f72fdf693fe290bf55bslive http://www.example.com/cgi-bin/first.pl
851855c098932af3def45f72fdf693fe290bf55bslive </example>
851855c098932af3def45f72fdf693fe290bf55bslive
851855c098932af3def45f72fdf693fe290bf55bslive <p>$B$"$k$$$O%U%!%$%k$rCV$$$?%m%1!<%7%g%s$r;XDj$9$k$H!"(B
a6d5093ed33faba25c29ab45b12f740906f98ce6yoshiki <code>Hello, World.</code>
851855c098932af3def45f72fdf693fe290bf55bslive $B$H$$$&(B 1 $B9T$,%V%i%&%6%&%#%s%I$K8=$l$k$G$7$g$&!#(B
851855c098932af3def45f72fdf693fe290bf55bslive $B$=$l$O$"$^$j%(%-%5%$%F%#%s%0$J$3$H$G$O$"$j$^$;$s!#(B
70d5ff773604d8c7625050947c3a9a764b31dd58pepper $B$7$+$7!"$3$l$,$&$^$/F0$1$P!"(B
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd $BB>$N$I$N$h$&$J$b$N$G$bF0$+$9$3$H$,$G$-$k$h$&$K$J$j$^$9!#(B</p>
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd </section>
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd </section>
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd <section id="troubleshoot">
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd <title>$B$7$+$7!"$^$@F0$+$J$$(B !</title>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd <p>$B%&%'%V$+$i(B CGI $B%W%m%0%i%`$X$N%"%/%;%9$r9T$J$C$?$H$-!"(B
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd $B%V%i%&%6$G8+$k2DG=@-$,$"$k;M$D$N4pK\E*$J$3$H$,$"$j$^$9(B:</p>
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd
c35cf55dcb2a4d774641d4d5d1fa414c3ae42135nd <dl>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper <dt>CGI $B%W%m%0%i%`$N=PNO(B</dt>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper <dd>$BAG@2$i$7$$(B ! $B$=$l$O$9$Y$F$,$&$^$/F0$$$?$3$H$r0UL#$7$^$9!#(B</dd>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <dt>CGI $B%W%m%0%i%`$N%=!<%9%3!<%I!"$^$?$O(B "POST Method Not Allowed"
6c822625991844de5475569ff656a69965aa6affrbowen $B$H$$$&%a%C%;!<%8(B</dt>
6c822625991844de5475569ff656a69965aa6affrbowen <dd>$B$3$l$O!"(BCGI $B%W%m%0%i%`$r=hM}$G$-$k$h$&(B Apache
6c822625991844de5475569ff656a69965aa6affrbowen $B$rE,@Z$K@_Dj$7$F$$$J$+$C$?$3$H$r0UL#$7$^$9!#(B<a
6c822625991844de5475569ff656a69965aa6affrbowen href="#configuringapachetopermitcgi">$B!V(BCGI $B$r5v2D$9$k$h$&$K(B
6c822625991844de5475569ff656a69965aa6affrbowen Apache $B$r@_Dj$9$k!W(B</a>$B$N>O$rFI$_D>$7!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$"$J$?$,2?$r4V0c$($?$+$rC5$7$F$_$F$/$@$5$$!#(B
6c822625991844de5475569ff656a69965aa6affrbowen </dd>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <dt>$B%a%C%;!<%8$,(B "Forbidden" $B$G;O$^$C$F$$$k(B</dt>
6c822625991844de5475569ff656a69965aa6affrbowen <dd>$B$3$l$O%Q!<%_%C%7%g%s$NLdBj$H$$$&$3$H$r0UL#$7$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen <a href="#errorlogs">Apache $B$N%(%i!<%m%0(B</a>$B$H!"8e=R$N(B<a
6c822625991844de5475569ff656a69965aa6affrbowen href="#filepermissions">$B!V%U%!%$%k$N%Q!<%_%C%7%g%s!W(B</a>
6c822625991844de5475569ff656a69965aa6affrbowen $B$N>O$r%A%'%C%/$7$F$/$@$5$$!#(B
6c822625991844de5475569ff656a69965aa6affrbowen </dd>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <dt>"Internal Server Error" $B$H$$$&%a%C%;!<%8(B</dt>
6c822625991844de5475569ff656a69965aa6affrbowen <dd><a href="#errorlogs">Apache
6c822625991844de5475569ff656a69965aa6affrbowen $B$N%(%i!<%m%0(B</a>$B$r%A%'%C%/$9$k$H!"(B"Premature end of script headers"
6c822625991844de5475569ff656a69965aa6affrbowen $B$H$$$&%m%0$,5-O?$5$l$F$$$k$H;W$$$^$9!#$=$7$F!"$*$=$i$/(B CGI
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$K$h$C$F@8@.$5$l$?%(%i!<%a%C%;!<%8$b5-O?$5$l$F$$$k$G$7$g$&!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$N>l9g!"(BCGI $B%W%m%0%i%`$,E,@Z$J(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd HTTP $B%X%C%@$r=PNO$G$-$J$$860x$rCN$k$?$a$K!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B0J2<$N3F>O$G%A%'%C%/$7$F$_$F$/$@$5$$!#(B</dd>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </dl>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <section id="permissions">
6c822625991844de5475569ff656a69965aa6affrbowen <title>$B%U%!%$%k$N%Q!<%_%C%7%g%s(B</title>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B%5!<%P$O$"$J$?$N8"8B$G<B9T$5$l$F$$$J$$$N$rK:$l$J$$$h$&$K!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$D$^$j!"5/F0$9$k$H$-!"%5!<%P$OFC8"$r$b$?$J$$%f!<%6(B - $BDL>o(B <code>nobody</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$d(B <code>www</code> $B$N8"8B$G<B9T$5$l$^$9!#$7$?$,$C$F!"$"$J$?$,=jM-$9$k(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%U%!%$%k$r<B9T$9$k$K$OJL$N%Q!<%_%C%7%g%s$,I,MW$H$J$j$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $BDL>o!"(B<code>nobody</code> $B$,<B9T$9$k$N$K==J,$J%Q!<%_%C%7%g%s$rM?$($kJ}K!$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%U%!%$%k$KC/$G$b<B9T2DG=$H$9$k%Q!<%_%C%7%g%s$rM?$($k$3$H$G$9(B:</p>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd chmod a+x first.pl
6c822625991844de5475569ff656a69965aa6affrbowen </example>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B$^$?!"$b$7$"$J$?$N%W%m%0%i%`$,B>$N%U%!%$%k$rFI$_=q$-$9$k$J$i$P!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$=$l$i$N%U%!%$%k$O!"$3$l$,2DG=$H$J$k@5$7$$%Q!<%_%C%7%g%s(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$r;}$C$F$$$kI,MW$,$"$j$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B$3$l$KBP$9$kNc30$O!"%5!<%P$,(B <a href="/suexec.html">suexec</a>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$r;HMQ$9$k$h$&@_Dj$5$l$F$$$k>l9g$G$9!#(Bsuexec $B$O!"(BCGI
6c822625991844de5475569ff656a69965aa6affrbowen $B%W%m%0%i%`$,CV$+$l$F$$$k%P!<%A%c%k%[%9%H$^$?$O%f!<%6$N(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%[!<%`%G%#%l%/%H%j$K$h$C$F!"0[$J$k%f!<%68"8B$G<B9T$5$l$k$h$&$K$7$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen suexec $B$O$H$F$b87$7$$%Q!<%_%C%7%g%s$N%A%'%C%/$,$"$j!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$=$N%A%'%C%/$rDL2a$G$-$J$$$H(B "Internal Server Error" $B$H$J$j!"$=$N(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd CGI $B%W%m%0%i%`$N<B9T$O<:GT$7$^$9!#(B
199a8ee5984e3708982fab1ba6ebb0a5feaea90cnd $B$3$N>l9g!"$I$N%;%-%e%j%F%#%A%'%C%/$,<:GT$7$F$$$k$N$+$rCN$k$?$a$K(B
6c822625991844de5475569ff656a69965aa6affrbowen suexec $B%m%0%U%!%$%k$r%A%'%C%/$9$kI,MW$,$"$j$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen </section>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <section id="pathinformation">
6c822625991844de5475569ff656a69965aa6affrbowen <title>$B%Q%9>pJs(B</title>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B%3%^%s%I%i%$%s$+$i%W%m%0%i%`$r<B9T$9$k$H$-!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B0U<1$7$J$/$F$b%7%'%k$KEO$5$l$k>pJs$,$"$j$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BNc$($P!";2>H$9$k%U%!%$%k$N$?$a$K$I$3$r8!:w$7$?$i$h$$$+$r(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%7%'%k$KEA$($k%Q%9$,$"$j$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B%W%m%0%i%`$,(B CGI $B%W%m%0%i%`$H$7$F%&%'%V%5!<%P$K$h$C$F<B9T$5$l$k$H$-!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$=$l$O%Q%9$r;}$A$^$;$s!#(BCGI $B%W%m%0%i%`Fb$G8F$S=P$9$"$i$f$k%W%m%0%i%`(B
6c822625991844de5475569ff656a69965aa6affrbowen ($BNc$($P!"(B'sendmail' $B$N$h$&$J$b$N(B) $B$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%U%k%Q%9$G;XDj$9$kI,MW$,$"$k$G$7$g$&!#$=$l$K$h$j!"(BCGI
6c822625991844de5475569ff656a69965aa6affrbowen $B%W%m%0%i%`$r<B9T$7$h$&$H$7$?$H$-!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%7%'%k$O$=$N$h$&$J%W%m%0%i%`$r8+$D$1$k$3$H$,$G$-$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$BF1MM$J$3$H$O!"%9%/%j%W%H$N%$%s%?%W%j%?(B ($B$7$P$7$P(B <code>perl</code>)
6c822625991844de5475569ff656a69965aa6affrbowen $B$X$N%Q%9$G!"(BCGI $B%W%m%0%i%`$N(B 1 $B9TL\$K<!$N$h$&$K<($5$l$^$9(B:</p>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper
6c822625991844de5475569ff656a69965aa6affrbowen <example>
6c822625991844de5475569ff656a69965aa6affrbowen #!/usr/bin/perl
6c822625991844de5475569ff656a69965aa6affrbowen </example>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B$3$l$,%$%s%?!<%W%j%?$X$N<B:]$N%Q%9$G$"$k$3$H$r3N<B$K$7$F$*$-$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <section id="syntaxerrors">
6c822625991844de5475569ff656a69965aa6affrbowen <title>$B9=J8%(%i!<(B</title>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>CGI
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$,<:GT$9$k$N$OBgDq!"%W%m%0%i%`<+?H$KLdBj$,$"$k>l9g$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B0lEY(B CGI $B$N;H$$J}$rM}2r$7!"A0=R$NFs$D$N8m$j$rHH$7$F$$$J$$$J$i$P!"(B
70d5ff773604d8c7625050947c3a9a764b31dd58pepper $B$^$:4V0c$$$J$/$=$&$G$7$g$&!#%V%i%&%6$rDL$7$F%F%9%H$r9T$&A0$KI,$:!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%3%^%s%I%i%$%s$+$i%W%m%0%i%`$N<B9T$r;n$7$J$5$$!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$l$K$h$j!"BgDq$NLdBj$,5/$3$i$J$/$J$j$^$9!#(B</p>
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes </section>
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes <section id="errorlogs">
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes <title>$B%(%i!<%m%0(B</title>
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes <p>$B%(%i!<%m%0$OM'C#$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BA4$F$N$&$^$/$$$+$J$$$3$H$O!"%(%i!<%m%0$K%a%C%;!<%8$r@8@.$7$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $BI,$:$=$l$r:G=i$K8+$k$Y$-$G$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$b$7!"$"$J$?$,%&%'%V%5%$%H$r<g:E$7$F$$$k>l=j$,(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%(%i!<%m%0$N;2>H$r5v$7$F$$$J$$$J$i$P!"$-$C$HB>$N%5%$%H$G<g:E$9$k$Y$-$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%(%i!<%m%0$NFI$_J}$r3X$V$3$H$G!"$[$H$s$IA4$F$NLdBj$,?WB.$K3NG'$5$l!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B?WB.$K2r7h$5$l$k$H$$$&$3$H$,J,$+$k$G$7$g$&!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <section id="behindscenes">
6c822625991844de5475569ff656a69965aa6affrbowen <title>$BN"$G2?$,5/$3$C$F$$$k$N$+(B?</title>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>CGI $B%W%m%0%i%_%s%0$K=,=O$9$k$H!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BN"$G5/$3$C$F$$$k$3$H$K$D$$$F99$KM}2r$9$k$3$HLr$KN)$A$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%V%i%&%6$H%5!<%P$,$I$N$h$&$KAj8_DL?.$9$k$+$K$D$$$F$OFC$K$=$&$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$J$<$J$i!"(B"Hello, World."
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$r0u;z$9$k%W%m%0%i%`$r=q$/$3$H$O$*$*$$$K7k9=$G$9$,!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$l$OFC$KM-1W$G$O$"$j$^$;$s!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <section id="env">
6c822625991844de5475569ff656a69965aa6affrbowen <title>$B4D6-JQ?t(B</title>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper
70d5ff773604d8c7625050947c3a9a764b31dd58pepper <p>$B4D6-JQ?t$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$"$J$?$,%3%s%T%e!<%?$r;H$&$H$-$KJU$j$KB8:_$7$F$$$kCM$G$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$=$l$i$O!"%Q%9(B
6c822625991844de5475569ff656a69965aa6affrbowen ($B%3%^%s%I$r%?%$%W$7$?$H$-$K<B9T$9$k<B:]$N%U%!%$%k$rC5$7=P$9$H$3$m(B)$B!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%f!<%6L>!"C<Kv7?$J$I$N$h$&$JJXMx$J$b$N$G$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $BDL>o!"IaCJ;HMQ$7$F$$$k4D6-JQ?t$N40A4$J%j%9%H$rD4$Y$k$K$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B%3%^%s%I%W%m%s%W%H$G(B <code>env</code> $B$rF~NO$7$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <p>CGI $B$N=hM}Cf!"%5!<%P$H%V%i%&%6$b4D6-JQ?t$r@_Dj$7!"(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$=$l$K$h$jAj8_$KDL?.$9$k$3$H$,$G$-$k$h$&$K$J$j$^$9!#(B
01814afd8daa1fb017fcb956ac01d173763f896eyoshiki $B$=$N4D6-JQ?t$O!"%V%i%&%6%?%$%W(B (Netscape, IE, Lynx)$B!"%5!<%P%?%$%W(B
01814afd8daa1fb017fcb956ac01d173763f896eyoshiki (Apache, IIS, WebSite)$B!"<B9T$5$l$F$$$k(B CGI
6c822625991844de5475569ff656a69965aa6affrbowen $B%W%m%0%i%`$NL>A0$J$I$G$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B$3$l$i$NJQ?t$O(B CGI $B%W%m%0%i%^$,;HMQ$G$-$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$7$F!"$=$l$O%/%i%$%"%s%H$H%5!<%P$NDL?.$NOC$NH>J,$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BI,MW$JJQ?t$N40A4$J%j%9%H$O(B <a
10542e490a1b0abf5c02e022f29ea2074ca4d435nd href="http://hoohoo.ncsa.uiuc.edu/cgi/env.html"
10542e490a1b0abf5c02e022f29ea2074ca4d435nd >http://hoohoo.ncsa.uiuc.edu/cgi/env.html</a> $B$K$"$j$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B0J2<$NC1=c$J(B Perl CGI
6c822625991844de5475569ff656a69965aa6affrbowen $B%W%m%0%i%`$O!"EO$5$l$kA4$F$N4D6-JQ?t$rI=<($7$^$9!#F1MM$N%W%m%0%i%`$O!"(B
6c822625991844de5475569ff656a69965aa6affrbowen Apache $B%G%#%9%H%j%S%e!<%7%g%s$N(B <code>cgi-bin</code>
6c822625991844de5475569ff656a69965aa6affrbowen $B%G%#%l%/%H%j$KFs$D4^$^$l$F$$$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$$$/$D$+$NJQ?t$,I,?\$G$"$j!"$$$/$D$+$OG$0U$G$"$k$3$H$KCm0U$7$F$/$@$5$$!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$7$F!"8x<0$N%j%9%H$K$O$J$$$$$/$D$+$NJQ?t$,I=<($5$l$F$$$k$+$b$7$l$^$;$s!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$5$i$K!"(BApache $B$O%G%U%)%k%H$GMQ0U$5$l$F$$$k4pK\E*$J$b$N$K(B
7cb7b06acc8700479d4d4080b8c7bc5278f20028slive <a href="/env.html">$B$"$J$?<+?H$N4D6-JQ?t$r2C$($k(B</a>$B$?$a$N!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BB?$/$N0[$J$kJ}K!$rMQ0U$7$F$7$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <example>
6c822625991844de5475569ff656a69965aa6affrbowen #!/usr/bin/perl<br />
6c822625991844de5475569ff656a69965aa6affrbowen print "Content-type: text/html\n\n";<br />
6c822625991844de5475569ff656a69965aa6affrbowen foreach $key (keys %ENV) {<br />
6c822625991844de5475569ff656a69965aa6affrbowen <indent>
6c822625991844de5475569ff656a69965aa6affrbowen print "$key --&gt; $ENV{$key}&lt;br&gt;";<br />
6c822625991844de5475569ff656a69965aa6affrbowen </indent>
6c822625991844de5475569ff656a69965aa6affrbowen }
6c822625991844de5475569ff656a69965aa6affrbowen </example>
6c822625991844de5475569ff656a69965aa6affrbowen </section>
70d5ff773604d8c7625050947c3a9a764b31dd58pepper
6c822625991844de5475569ff656a69965aa6affrbowen <section id="stdin">
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <title>STDIN $B$H(B STDOUT</title>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B%5!<%P$H%/%i%$%"%s%H4V$N$b$&0l$D$NDL?.$O!"I8=`F~NO(B
6c822625991844de5475569ff656a69965aa6affrbowen (<code>STDIN</code>)$B$HI8=`=PNO(B (<code>STDOUT</code>)
6c822625991844de5475569ff656a69965aa6affrbowen $B$rDL$8$F9T$J$o$l$^$9!#DL>o$NJ8L.$K$*$$$F!"(B<code>STDIN</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$O%-!<%\!<%I$d%W%m%0%i%`$,F0:n$9$k$?$a$KM?$($i$l$k%U%!%$%k$r0UL#$7!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <code>STDOUT</code> $B$ODL>o%3%s%=!<%k$^$?$O%9%/%j!<%s$r0UL#$7$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B%&%'%V%U%)!<%`$+$i(B CGI $B%W%m%0%i%`$X(B<code>POST</code>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$7$?$H$-!"%U%)!<%`$N%G!<%?$OFCJL$J%U%)!<%^%C%H$GB+$M$i$l!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <code>STDIN</code> $B$rDL$7$F!"(BCGI $B%W%m%0%i%`$K0z$-EO$5$l$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%W%m%0%i%`$O%G!<%?$,%-!<%\!<%I(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$b$7$/$O%U%!%$%k$+$iMh$F$$$?$+$N$h$&$K=hM}$9$k$3$H$,$G$-$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>$B!VFCJL$J%U%)!<%^%C%H!W$O$H$F$bC1=c$G$9!#%U%#!<%k%IL>$HCM$O%$%3!<%k(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd (=) $B$G7k$P$l$^$9!#$=$7$FCM$NAH$O%"%s%Q%5%s%I(B (&amp;) $B$G7k$P$l$^$9!#(B
70d5ff773604d8c7625050947c3a9a764b31dd58pepper $B%9%Z!<%9!"%"%s%Q%5%s%I!"%$%3!<%k$N$h$&$JLLE]$JJ8;z$O!"(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$=$l$i$,F0:n$rBLL\$K$7$J$$$h$&$K$=$NJ8;z$KAjEv$9$k(B 16 $B?J$KJQ49$5$l$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $BA4%G!<%?J8;zNs$O!"0J2<$N$h$&$K$J$j$^$9(B:
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <example>
6c822625991844de5475569ff656a69965aa6affrbowen name=Rich%20Bowen&amp;city=Lexington&amp;state=KY&amp;sidekick=Squirrel%20Monkey
6c822625991844de5475569ff656a69965aa6affrbowen </example>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>$B;~!9!"$3$N$h$&$JJ8;zNs$,(B URL
6c822625991844de5475569ff656a69965aa6affrbowen $B$KIU2C$5$l$k$N$r8+$k$G$7$g$&!#$=$N>l9g!"%5!<%P$O(B
c565fd2e7427b01f28586bb148415d492b59044dnd <code>QUERY_STRING</code> $B$H$$$&4D6-JQ?t$K$=$NJ8;zNs$rF~$l$^$9!#$=$l$O(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <code>GET</code> $B%j%/%(%9%H$H8F$P$l$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd HTML $B%U%)!<%`$G$O!"%G!<%?$rEO$9$?$a$K(B <code>GET</code> $B$H(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <code>POST</code> $B$N$I$A$i$r;HMQ$9$k$+$r!"(B<code>FORM</code> $B%?%0$N(B
6c822625991844de5475569ff656a69965aa6affrbowen <code>METHOD</code> $BB0@-$N@_Dj$G;XDj$7$^$9!#(B</p>
6c822625991844de5475569ff656a69965aa6affrbowen
6c822625991844de5475569ff656a69965aa6affrbowen <p>CGI $B%W%m%0%i%`$O!"$=$NJ8;zNs$rLr$KN)$D>pJs$KJ,3d$9$k@UG$$,$"$j$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B9,$$$K$b!"$=$N%G!<%?=hM}$r=u$1$k%i%$%V%i%j$d%b%8%e!<%k$,B8:_$7$^$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$l$i$O!"(BCGI $B%W%m%0%i%`$NB>$NLL$G$bF1MM$KLr$KN)$A$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd </section>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
70d5ff773604d8c7625050947c3a9a764b31dd58pepper <section id="libraries">
6c822625991844de5475569ff656a69965aa6affrbowen <title>CGI $B%b%8%e!<%k(B/$B%i%$%V%i%j(B</title>
6c822625991844de5475569ff656a69965aa6affrbowen
10542e490a1b0abf5c02e022f29ea2074ca4d435nd <p>CGI $B%W%m%0%i%`$r=q$/$H$-!"LLE]$J;E;v$NBgItJ,$r$7$F$/$l$k(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B%3!<%I%i%$%V%i%j$^$?$O%b%8%e!<%k$r;H$&$3$H$r8!F$$9$Y$-$G$9!#(B
10542e490a1b0abf5c02e022f29ea2074ca4d435nd $B$3$l$O%(%i!<$r8:$i$7!"Aa$$3+H/$K$D$J$,$j$^$9!#(B</p>
10542e490a1b0abf5c02e022f29ea2074ca4d435nd
6c822625991844de5475569ff656a69965aa6affrbowen <p>Perl $B$G(B CGI $B%W%m%0%i%`$r=q$$$F$$$k$J$i!"%b%8%e!<%k$O(B <a
6c822625991844de5475569ff656a69965aa6affrbowen href="http://www.cpan.org/">CPAN</a> $B$GDs6!$5$l$F$$$^$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen $B$3$NL\E*$N$?$a$N:G$bIa5Z$7$F$$$k%b%8%e!<%k$O(B <code>CGI.pm</code> $B$G$9!#(B
6c822625991844de5475569ff656a69965aa6affrbowen <code>CGI::Lite</code> $B$b8!F$$7$^$7$g$&!#$3$l$O!"$[$H$s$I$N%W%m%0%i%`(B
$B$K$*$$$FI,MW$H$9$k$9$Y$F$N5!G=$N:G>.%;%C%H$N<BAu$G$9!#(B</p>
<p>C $B$G(B CGI $B%W%m%0%i%`$r=q$$$F$$$k$J$i!"$$$m$$$m$J(B
$B%*%W%7%g%s$,$"$j$^$9!#$3$l$i$NFb$N0l$D$O(B <a
href="http://www.boutell.com/cgic/">http://www.boutell.com/cgic/</a>
$B$GDs6!$5$l$F$$$k(B <code>CGIC</code> $B%i%$%V%i%j$G$9!#(B</p>
</section>
<section id="moreinfo">
<title>$B99$J$k>pJs(B</title>
<p>CGI $B$K4X$9$k>pJs$O%&%'%V$G?tB?$/Ds6!$5$l$F$$$^$9!#(BCGI
$B$NLdBj$K$D$$$F$O(B Usenet $B$N(B <a href="news:comp.infosystems.www.authoring.cgi"
>comp.infosystems.www.authoring.cgi</a> $B$G!"(B
$BB>$N%f!<%6$HO@5D$9$k$3$H$,$G$-$^$9!#(BHTML Writers Guide $B$N(B
-servers $B%a!<%j%s%0%j%9%H$O!"$"$J$?$N<ALd$K2sEz$7$F$/$l$k0NBg$J%j%=!<%9$G$9!#(B
<a href="http://www.hwg.org/lists/hwg-servers/"
>http://www.hwg.org/lists/hwg-servers/</a>
$B$G99$KB?$/$rC5$7=P$9$3$H$,$G$-$^$9!#(B</p>
<p>$B$=$7$F$b$A$m$s!"$*$=$i$/(B CGI
$B%W%m%0%i%`$NF0:n$K4X$9$k>\:Y$NA4$F$,5-=R$5$l$F$$$k(B
CGI $B$N;EMM$rFI$`$Y$-$G$9!#%*%j%8%J%k%P!<%8%g%s$r(B
<a href="http://hoohoo.ncsa.uiuc.edu/cgi/interface.html">NCSA</a>
$B$G!"%"%C%W%G!<%H$5$l$?%I%i%U%H$r(B
<a href="http://web.golux.com/coar/cgi/">Common Gateway Interface RFC
$B%W%m%8%'%/%H(B</a>$B$G;2>H$9$k$3$H$,$G$-$^$9!#(B</p>
<p>CGI $B$NLdBj$K$D$$$F!"2C$o$C$F$$$k%a!<%j%s%0%j%9%H$^$?$O%K%e!<%9(B
$B%0%k!<%W$K<ALd$rAw$k$H$-!"5/$3$C$?$b$N!"5/$3$C$F$[$7$$$3$H!"(B
$B<B:]$K5/$3$C$?$3$H$,$I$&0c$&$+!";HMQ$7$F$$$k%5!<%P!"(B
CGI $B%W%m%0%i%`$r5-=R$7$F$$$k8@8l$K4X$9$k==J,$J>pJs$H!"(B
$B2DG=$G$"$l$PLdBj$N%3!<%I$rDs6!$9$k$h$&$K$7$F$/$@$5$$!#(B
$B$=$&$9$k$3$H$G!"LdBj$,$h$j4VC1$K8+$D$+$k$h$&$K$J$j$^$9!#(B</p>
<p>Apache $B$N%=!<%9%3!<%I$K$*$$$FLdBj$rH/8+$7$?$3$H$r3N?.$7$F$$$J$$8B$j!"(B
CGI $B$NLdBj$K4X$9$k<ALd$r(B Apache
$B%P%0%G!<%?%Y!<%9$K(B<strong>$BAw$k$Y$-$G$J$$(B</strong>
$B$3$H$KCmL\$7$F$/$@$5$$!#(B</p>
</section>
</manualpage>