handler.xml.ja revision a2652f3451528565db1f85db6953fc30799d7ead
<?xml version="1.0" encoding="iso-2022-jp" ?>
<!-- English Revision: 160365 -->
<!--
Copyright 2002-2006 The Apache Software Foundation or its licensors, as
applicable.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manualpage metafile="handler.xml.meta">
<title>Apache $B$N%O%s%I%i$N;HMQ(B</title>
<summary>
<p>Apache $B$N%O%s%I%i$N;HMQ$K4X$7$F5-=R$7$F$$$^$9!#(B</p>
</summary>
<section id="definition">
<title>$B%O%s%I%i$H$O(B</title>
<related>
<modulelist>
<module>mod_actions</module>
<module>mod_asis</module>
<module>mod_cgi</module>
<module>mod_imagemap</module>
<module>mod_info</module>
<module>mod_mime</module>
<module>mod_negotiation</module>
<module>mod_status</module>
</modulelist>
<directivelist>
<directive module="mod_actions">Action</directive>
<directive module="mod_mime">AddHandler</directive>
<directive module="mod_mime">RemoveHandler</directive>
<directive module="core">SetHandler</directive>
</directivelist>
</related>
<p>$B!V%O%s%I%i!W$H$O!"%U%!%$%k$,8F$P$l$?$H$-$K<B9T$5$l$kF0:n$N(B
Apache $B$K$*$1$kFbItI=8=$G$9!#(B
$BDL>o!"%U%!%$%k$O%U%!%$%k7?$K4p$E$$$?0EL[$N%O%s%I%i$,$"$j$^$9!#(B
$BIaDL$O$9$Y$F$N%U%!%$%k$OC1$K%5!<%P$K07$o$l$^$9$,!"(B
$B%U%!%$%k%?%$%W$NCf$K$OJL$K!V%O%s%I%k!W(B($BLuCm(B: $B07$&(B)
$B$5$l$k$b$N$b$"$j$^$9!#(B</p>
<p>Apache 1.1 $B$G$O!"%O%s%I%i$rL@<(E*$K;HMQ$9$k5!G=$,DI2C$5$l$^$7$?!#(B
$B%U%!%$%k$N3HD%;R$dCV$$$F$$$k>l=j$K4p$E$$$F!"(B
$B%U%!%$%k7?$H4X78$J$/%O%s%I%i$r;XDj$9$k$3$H$,$G$-$^$9!#(B
$B$3$l$O$h$jM%2m$J2r7hK!$H$$$&E@$H!"%U%!%$%k$K%?%$%W(B<strong>$B$H(B</strong
>$B%O%s%I%i$NN>J}$r4XO"IU$1$k$3$H$,$G$-$k$H$$$&E@$GM%$l$F$$$^$9!#(B
(<a href="mod/mod_mime.html#multipleext"
>$BJ#?t$N3HD%;R$N$"$k%U%!%$%k(B</a>$B$b;2>H$7$F$/$@$5$$(B)$B!#(B</p>
<p>$B%O%s%I%i$O%5!<%P$KAH$_9~$s$@$j!"%b%8%e!<%k$H$7$F4^$a$?$j!"(B
<directive module="mod_actions">Action</directive>
$B%G%#%l%/%F%#%V$H$7$FDI2C$7$?$j$9$k$3$H$,$G$-$^$9!#(B
$B0J2<$OI8=`G[I[$KAH$_9~$^$l$F$$$k%O%s%I%i$G$9!#(B
</p>
<ul>
<li><strong>default-handler</strong>:<code>default_handelr()</code>
$B$r;H$C$F%U%!%$%k$rAw$j$^$9!#(B
$B@EE*$J%3%s%F%s%D$r07$&$H$-$K%G%U%)%k%H$G;HMQ$5$l$k%O%s%I%i$G$9!#(B
(<module>core</module>)</li>
<li><strong>send-as-is</strong>:
HTTP $B%X%C%@$N$"$k%U%!%$%k$r$=$N$^$^Aw$j$^$9!#(B
(<module>mod_asis</module>)</li>
<li><strong>cgi-script</strong>: $B%U%!%$%k$r(B CGI
$B%9%/%j%W%H$H$7$F07$$$^$9!#(B
(<module>mod_cgi</module>)</li>
<li><strong>imap-file</strong>:
$B%$%a!<%8%^%C%W$N%k!<%k%U%!%$%k$H$7$F2r@O$7$^$9!#(B
(<module>mod_imagemap</module>)</li>
<li><strong>server-info</strong>: $B%5!<%P$N@_Dj>pJs$r<hF@$7$^$9!#(B
(<module>mod_info</module>)</li>
<li><strong>server-status</strong>: $B%5!<%P$N>uBVJs9p$r<hF@$7$^$9!#(B
(<module>mod_status</module>)</li>
<li><strong>type-map</strong>:
$B%3%s%F%s%H%M%4%7%(!<%7%g%s$N$?$a$N%?%$%W%^%C%W$H$7$F2r@O$7$^$9!#(B
(<module>mod_negotiation</module>)</li>
</ul>
</section>
<section id="examples">
<title>$BNc(B</title>
<section id="example1">
<title>CGI $B%9%/%j%W%H$rMQ$$$F@EE*$J%3%s%F%s%D$rJQ99$9$k(B</title>
<p>$B0J2<$N%G%#%l%/%F%#%V$K$h$C$F!"3HD%;R$,(B <code>html</code>
<example>
AddHandler add-footer .html
</example>
<p>CGI $B%9%/%j%W%H$O4uK>$N=$@5$dDI2C$r9T$J$C$F!"85!9MW5a$5$l$?J8=q(B
($B4D6-JQ?t(B <code>PATH_TRANSLATED</code>
$B$G;X$5$l$F$$$^$9(B) $B$rAw$k@UG$$,$"$j$^$9!#(B
</p>
</section>
<section id="example2">
<title>HTTP $B%X%C%@$N$"$k%U%!%$%k(B</title>
<p>$B0J2<$N%G%#%l%/%F%#%V$O(B <code>send-as-is</code>
$B%O%s%I%i$r;HMQ$9$k$h$&$K;X<($7$^$9!#$3$N%O%s%I%i$O<+J,<+?H$N(B HTTP
$B%X%C%@$r;}$C$F$$$k%U%!%$%k$K;HMQ$5$l$^$9!#$3$3$G$O!"3HD%;R$K4X$o$i$:!"(B
<code>send-as-is</code> $B%O%s%I%i$K$h$C$F07$o$l$^$9!#(B</p>
<example>
SetHandler send-as-is<br/>
</Directory>
</example>
</section>
</section>
<section id="programmer">
<title>$B%W%m%0%i%^8~$1$N%a%b(B</title>
<p>$B%O%s%I%i$N5!G=$r<BAu$9$k$?$a$K!"MxMQ$9$k$HJXMx$+$b$7$l$J$$$b$N$,(B
$B$KDI2C$5$l$^$7$?!#>\$7$/8@$&$H!"(B<code>request_rec</code>
$B9=B$BN$K?7$7$$%l%3!<%I$,DI2C$5$l$?$H$$$&$3$H$G$9!#(B</p>
<example>
char *handler
</example>
<p>$B$b$7%b%8%e!<%k$,%O%s%I%i$K4X$o$j$?$$>l9g!"(B
$B$d$i$J$1$l$P$J$i$J$$$3$H$O!"%j%/%(%9%H$,(B <code>invoke_handler</code>
$B%9%F!<%8$KC#$9$k0JA0$K(B <code>r->handler</code>
$B$r@_Dj$9$k$3$H$@$1$G$9!#%O%s%I%i$O%3%s%F%s%H%?%$%W$NBe$o$j$K(B
$B%O%s%I%iL>$r;H$&$h$&$K$J$C$F$$$k$3$H0J30$O!"0JA0$HF1$8$h$&$K<BAu$5$l$F$$$^$9!#(B
$BI,$:MW5a$5$l$F$$$k$o$1$G$O$"$j$^$;$s$,!"%a%G%#%"%?%$%W(B
$B$NL>A06u4V$r?/$5$J$$$h$&$K!"%O%s%I%i$NL>A0$K$O%9%i%C%7%e$r4^$^$J$$!"(B
$B%@%C%7%e(B ($BLuCm(B: "-") $B$GJ,N%$5$l$?L>A0$rIU$1$k=,47$K$J$C$F$$$^$9!#(B</p>
</section>
</manualpage>