]> granicus.if.org Git - apache/blob - docs/manual/handler.xml.ko
Axe some outdated references to httpd 1.2.x and 2.0.x.
[apache] / docs / manual / handler.xml.ko
1 <?xml version="1.0" encoding="EUC-KR" ?>
2 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
4 <!-- English Revision: 151408:1673945 (outdated) -->
5
6 <!--
7  Licensed to the Apache Software Foundation (ASF) under one or more
8  contributor license agreements.  See the NOTICE file distributed with
9  this work for additional information regarding copyright ownership.
10  The ASF licenses this file to You under the Apache License, Version 2.0
11  (the "License"); you may not use this file except in compliance with
12  the License.  You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21 -->
22
23 <manualpage metafile="handler.xml.meta">
24
25   <title>¾ÆÆÄÄ¡¿¡¼­ Çڵ鷯 »ç¿ë</title>
26
27   <summary>
28     <p>ÀÌ ¹®¼­´Â ¾ÆÆÄÄ¡¿¡¼­ Çڵ鷯¸¦ »ç¿ëÇϴ ¹æ¹ýÀ» ¼³¸íÇÑ´Ù.</p>
29   </summary>
30
31   <section id="definition">
32     <title>Çڵ鷯°¡ ¹«¾ùÀΰ¡</title>
33     <related>
34       <modulelist>
35         <module>mod_actions</module>
36         <module>mod_asis</module>
37         <module>mod_cgi</module>
38         <module>mod_imagemap</module>
39         <module>mod_info</module>
40         <module>mod_mime</module>
41         <module>mod_negotiation</module>
42         <module>mod_status</module>
43      </modulelist>
44       <directivelist>
45         <directive module="mod_actions">Action</directive>
46         <directive module="mod_mime">AddHandler</directive>
47         <directive module="mod_mime">RemoveHandler</directive>
48         <directive module="core">SetHandler</directive>
49       </directivelist>
50     </related>
51
52
53     <p>ÆÄÀÏÀ» ¿äûÇÒ¶§ ¾ÆÆÄÄ¡°¡ ³»ºÎÀûÀ¸·Î ¼öÇàÇÒ ÀÛ¾÷À»
54     "Çڵ鷯(handler)"¶ó°í ÇÑ´Ù. ÀϹÝÀûÀ¸·Î ÆÄÀÏÀº ÆÄÀÏ Á¾·ù¿¡
55     µû¶ó ¾Ï¹¬ÀûÀΠÇڵ鷯¸¦ °¡Áö°í ÀÖ´Ù. ¸ðµç ÆÄÀÏÀº º¸Åë °£´ÜÈ÷
56     ¼­¹ö°¡ ¼­ºñ½ºÇÏÁö¸¸, ¾î¶² ÆÄÀÏ Á¾·ù´Â µû·Î "󸮵ȴÙ(handled)".</p>
57
58     <p>Apache 1.1ºÎÅÍ Çڵ鷯¸¦ ¸í½ÃÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ°Ô µÇ¾ú´Ù.
59     ÆÄÀÏ Á¾·ù¿Í °ü°è¾øÀÌ Çڵ鷯¸¦ ÆÄÀÏÀÇ È®ÀåÀÚ³ª À§Ä¡¿¡ µû¶ó
60     ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù. À̴ ´õ ÈǸ¢ÇÑ ¹æ¹ýÀÌ°í ÆÄÀÏÀ» Á¾·ù¿Í Çڵ鷯
61     µÑ ¸ðµÎ¿Í ¿¬°èÇÒ ¼ö Àֱ⶧¹®¿¡ ÁÁ´Ù. (<a
62     href="mod/mod_mime.html#multipleext">¿©·¯ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏ</a>µµ
63     Âü°í)</p>
64
65     <p>Çڵ鷯´Â ¼­¹ö³ª ¸ðµâ·Î ±¸ÇöÇÏ¿©, <directive
66     module="mod_actions">Action</directive> Áö½Ã¾î·Î Ãß°¡ÇÒ
67     ¼ö ÀÖ´Ù. Ç¥ÁØ ¹èÆ÷º»¿¡ Àִ ±âº» Çڵ鷯´Â ´ÙÀ½°ú °°´Ù:</p>
68
69     <ul>
70       <li><strong>default-handler</strong>: Á¤ÀûÀΠ³»¿ëÀ»
71       Ã³¸®ÇϱâÀ§ÇØ ±âº»ÀûÀ¸·Î »ç¿ëÇϴ Çڵ鷯
72       <code>default_handler()</code>¸¦ »ç¿ëÇÏ¿© ÆÄÀÏÀ» º¸³½´Ù.
73       (core)</li>
74
75       <li><strong>send-as-is</strong>: HTTP Çì´õ°¡ Àִ ÆÄÀÏÀ»
76       ±×´ë·Î º¸³½´Ù. (<module>mod_asis</module>)</li>
77
78       <li><strong>cgi-script</strong>: ÆÄÀÏÀ» CGI·Î Ã³¸®ÇÑ´Ù.
79       (<module>mod_cgi</module>)</li>
80
81       <li><strong>imap-file</strong>: imagemap ±ÔÄ¢ ÆÄÀÏ·Î
82       Ã³¸®ÇÑ´Ù. (<module>mod_imagemap</module>)</li>
83
84       <li><strong>server-info</strong>: ¼­¹öÀÇ ¼³Á¤ Á¤º¸¸¦
85       ¾Ë·ÁÁØ´Ù. (<module>mod_info</module>)</li>
86
87       <li><strong>server-status</strong>: ¼­¹öÀÇ »óŸ¦ º¸°íÇÑ´Ù.
88       (<module>mod_status</module>)</li>
89
90       <li><strong>type-map</strong>: ³»¿ëÇù»ó¿¡ »ç¿ëÇÒ
91       type mapÀ¸·Î Ã³¸®ÇÑ´Ù.
92       (<module>mod_negotiation</module>)</li>
93     </ul>
94   </section>
95   <section id="examples">
96     <title>¿¹Á¦</title>
97
98     <section id="example1">
99       <title>CGI ½ºÅ©¸³Æ®¸¦ »ç¿ëÇÏ¿© Á¤ÀûÀΠ³»¿ë ¼öÁ¤Çϱâ</title>
100
101       <p>´ÙÀ½ Áö½Ã¾î´Â È®ÀåÀÚ°¡ <code>html</code>ÀΠÆÄÀÏÀ»
102       ¿äûÇÒ °æ¿ì <code>footer.pl</code> CGI ½ºÅ©¸³Æ®¸¦ ¶ç¿î´Ù.</p>
103
104       <example>
105         Action add-footer /cgi-bin/footer.pl<br/>
106         AddHandler add-footer .html
107       </example>
108
109       <p>CGI ½ºÅ©¸³Æ®´Â
110       (<code>PATH_TRANSLATED</code> È¯°æº¯¼ö°¡ ÁöĪÇÏ´Â) ¿ø·¡
111       ¿äûÇÑ ¹®¼­¸¦ ÀûÀýÈ÷ ¼öÁ¤ÇÑ ÈÄ º¸³½´Ù.</p>
112  
113     </section>
114     <section id="example2">
115       <title>HTTP Çì´õ¸¦ Æ÷ÇÔÇϴ ÆÄÀÏ</title>
116
117       <p>´ÙÀ½ Áö½Ã¾î´Â HTTP Çì´õ¸¦ Æ÷ÇÔÇϴ ÆÄÀÏ¿¡
118       <code>send-as-is</code> Çڵ鷯¸¦ Áö½ÃÇÑ´Ù.
119       <code>/web/htdocs/asis/</code> µð·ºÅ丮 ¾È¿¡ Àִ ¸ðµç
120       ÆÄÀÏÀº È®ÀåÀÚ¿Í °ü°è¾øÀÌ <code>send-as-is</code> Çڵ鷯°¡
121       Ã³¸®ÇÑ´Ù.</p>
122
123       <example>
124         &lt;Directory /web/htdocs/asis&gt;<br/>
125         SetHandler send-as-is<br/>
126         &lt;/Directory&gt;
127       </example>
128
129     </section>
130   </section>
131   <section id="programmer">
132     <title>ÇÁ·Î±×·¡¸Ó¸¦ À§ÇÑ Á¤º¸</title>
133
134     <p>Çڵ鷯 ±â´ÉÀ» ±¸ÇöÇϱâÀ§ÇØ »ç¿ëÇÔÁ÷ÇÑ
135     <a href="developer/API.html">Apache API</a>°¡ Ãß°¡µÇ¾ú´Ù.
136     Æ¯È÷ <code>request_rec</code> ±¸Á¶Ã¼¿¡ »õ·Î¿î Çʵ尡
137     Ãß°¡µÇ¾ú´Ù:</p>
138
139     <example>
140       char *handler
141     </example>
142
143     <p>¸ðµâÀÌ Çڵ鷯¸¦ »ç¿ëÇÏ·Á¸é, ¿äûÀÇ
144     <code>invoke_handler</code> ´Ü°è ÀÌÀü¿¡
145     <code>r-&gt;handler</code>¿¡ Çڵ鷯 À̸§À» ÁöÁ¤ÇØÁֱ⸸
146     Çϸ頵ȴÙ. Çڵ鷯´Â content type ´ë½Å Çڵ鷯 À̸§À» »ç¿ëÇÑ
147     °ÍÀ» Á¦¿ÜÇÏ°í´Â Àü°ú °°ÀÌ ±¸ÇöµÇ¾ú´Ù. ²À Áöų ÇÊ¿ä´Â ¾øÁö¸¸
148     Çڵ鷯 À̸§¿¡ ½½·¡½¬¸¦ »ç¿ëÇÏÁö ¾Ê°í, ´Ü¾îµé »çÀÌ¿¡ »©±â
149     ±âÈ£¸¦ »ç¿ëÇϴ °ÍÀÌ ÀϹÝÀûÀÌ´Ù. ±×·¡¼­ Çڵ鷯 À̸§ÀÌ
150     media type°ú °ãÄ¡Áö ¾Ê´Â´Ù.</p>
151   </section>
152 </manualpage>
153
154
155
156
157