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:413465 (outdated) -->
7 Copyright 2003-2006 The Apache Software Foundation or its licensors,
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
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.
23 <manualpage metafile="handler.xml.meta">
25 <title>¾ÆÆÄÄ¡¿¡¼ Çڵ鷯 »ç¿ë</title>
28 <p>ÀÌ ¹®¼´Â ¾ÆÆÄÄ¡¿¡¼ Çڵ鷯¸¦ »ç¿ëÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÑ´Ù.</p>
31 <section id="definition">
32 <title>Çڵ鷯°¡ ¹«¾ùÀΰ¡</title>
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>
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>
53 <p>ÆÄÀÏÀ» ¿äûÇÒ¶§ ¾ÆÆÄÄ¡°¡ ³»ºÎÀûÀ¸·Î ¼öÇàÇÒ ÀÛ¾÷À»
54 "Çڵ鷯(handler)"¶ó°í ÇÑ´Ù. ÀϹÝÀûÀ¸·Î ÆÄÀÏÀº ÆÄÀÏ Á¾·ù¿¡
55 µû¶ó ¾Ï¹¬ÀûÀÎ Çڵ鷯¸¦ °¡Áö°í ÀÖ´Ù. ¸ðµç ÆÄÀÏÀº º¸Åë °£´ÜÈ÷
56 ¼¹ö°¡ ¼ºñ½ºÇÏÁö¸¸, ¾î¶² ÆÄÀÏ Á¾·ù´Â µû·Î "󸮵ȴÙ(handled)".</p>
58 <p>Apache 1.1ºÎÅÍ Çڵ鷯¸¦ ¸í½ÃÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ°Ô µÇ¾ú´Ù.
59 ÆÄÀÏ Á¾·ù¿Í °ü°è¾øÀÌ Çڵ鷯¸¦ ÆÄÀÏÀÇ È®ÀåÀÚ³ª À§Ä¡¿¡ µû¶ó
60 ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù. ÀÌ´Â ´õ ÈǸ¢ÇÑ ¹æ¹ýÀÌ°í ÆÄÀÏÀ» Á¾·ù¿Í Çڵ鷯
61 µÑ ¸ðµÎ¿Í ¿¬°èÇÒ ¼ö Àֱ⶧¹®¿¡ ÁÁ´Ù. (<a
62 href="mod/mod_mime.html#multipleext">¿©·¯ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏ</a>µµ
65 <p>Çڵ鷯´Â ¼¹ö³ª ¸ðµâ·Î ±¸ÇöÇÏ¿©, <directive
66 module="mod_actions">Action</directive> Áö½Ã¾î·Î Ãß°¡ÇÒ
67 ¼ö ÀÖ´Ù. Ç¥ÁØ ¹èÆ÷º»¿¡ ÀÖ´Â ±âº» Çڵ鷯´Â ´ÙÀ½°ú °°´Ù:</p>
70 <li><strong>default-handler</strong>: Á¤ÀûÀÎ ³»¿ëÀ»
71 ó¸®ÇϱâÀ§ÇØ ±âº»ÀûÀ¸·Î »ç¿ëÇÏ´Â Çڵ鷯
72 <code>default_handler()</code>¸¦ »ç¿ëÇÏ¿© ÆÄÀÏÀ» º¸³½´Ù.
75 <li><strong>send-as-is</strong>: HTTP Çì´õ°¡ ÀÖ´Â ÆÄÀÏÀ»
76 ±×´ë·Î º¸³½´Ù. (<module>mod_asis</module>)</li>
78 <li><strong>cgi-script</strong>: ÆÄÀÏÀ» CGI·Î ó¸®ÇÑ´Ù.
79 (<module>mod_cgi</module>)</li>
81 <li><strong>imap-file</strong>: imagemap ±ÔÄ¢ ÆÄÀÏ·Î
82 ó¸®ÇÑ´Ù. (<module>mod_imagemap</module>)</li>
84 <li><strong>server-info</strong>: ¼¹öÀÇ ¼³Á¤ Á¤º¸¸¦
85 ¾Ë·ÁÁØ´Ù. (<module>mod_info</module>)</li>
87 <li><strong>server-status</strong>: ¼¹öÀÇ »óŸ¦ º¸°íÇÑ´Ù.
88 (<module>mod_status</module>)</li>
90 <li><strong>type-map</strong>: ³»¿ëÇù»ó¿¡ »ç¿ëÇÒ
91 type mapÀ¸·Î ó¸®ÇÑ´Ù.
92 (<module>mod_negotiation</module>)</li>
95 <section id="examples">
98 <section id="example1">
99 <title>CGI ½ºÅ©¸³Æ®¸¦ »ç¿ëÇÏ¿© Á¤ÀûÀÎ ³»¿ë ¼öÁ¤Çϱâ</title>
101 <p>´ÙÀ½ Áö½Ã¾î´Â È®ÀåÀÚ°¡ <code>html</code>ÀÎ ÆÄÀÏÀ»
102 ¿äûÇÒ °æ¿ì <code>footer.pl</code> CGI ½ºÅ©¸³Æ®¸¦ ¶ç¿î´Ù.</p>
105 Action add-footer /cgi-bin/footer.pl<br/>
106 AddHandler add-footer .html
110 (<code>PATH_TRANSLATED</code> ȯ°æº¯¼ö°¡ ÁöĪÇÏ´Â) ¿ø·¡
111 ¿äûÇÑ ¹®¼¸¦ ÀûÀýÈ÷ ¼öÁ¤ÇÑ ÈÄ º¸³½´Ù.</p>
114 <section id="example2">
115 <title>HTTP Çì´õ¸¦ Æ÷ÇÔÇÏ´Â ÆÄÀÏ</title>
117 <p>´ÙÀ½ Áö½Ã¾î´Â HTTP Çì´õ¸¦ Æ÷ÇÔÇÏ´Â ÆÄÀÏ¿¡
118 <code>send-as-is</code> Çڵ鷯¸¦ Áö½ÃÇÑ´Ù.
119 <code>/web/htdocs/asis/</code> µð·ºÅ丮 ¾È¿¡ ÀÖ´Â ¸ðµç
120 ÆÄÀÏÀº È®ÀåÀÚ¿Í °ü°è¾øÀÌ <code>send-as-is</code> Çڵ鷯°¡
124 <Directory /web/htdocs/asis><br/>
125 SetHandler send-as-is<br/>
131 <section id="programmer">
132 <title>ÇÁ·Î±×·¡¸Ó¸¦ À§ÇÑ Á¤º¸</title>
134 <p>Çڵ鷯 ±â´ÉÀ» ±¸ÇöÇϱâÀ§ÇØ »ç¿ëÇÔÁ÷ÇÑ
135 <a href="developer/API.html">Apache API</a>°¡ Ãß°¡µÇ¾ú´Ù.
136 ƯÈ÷ <code>request_rec</code> ±¸Á¶Ã¼¿¡ »õ·Î¿î Çʵ尡
143 <p>¸ðµâÀÌ Çڵ鷯¸¦ »ç¿ëÇÏ·Á¸é, ¿äûÀÇ
144 <code>invoke_handler</code> ´Ü°è ÀÌÀü¿¡
145 <code>r->handler</code>¿¡ Çڵ鷯 À̸§À» ÁöÁ¤ÇØÁֱ⸸
146 ÇÏ¸é µÈ´Ù. Çڵ鷯´Â content type ´ë½Å Çڵ鷯 À̸§À» »ç¿ëÇÑ
147 °ÍÀ» Á¦¿ÜÇÏ°í´Â Àü°ú °°ÀÌ ±¸ÇöµÇ¾ú´Ù. ²À Áöų ÇÊ¿ä´Â ¾øÁö¸¸
148 Çڵ鷯 À̸§¿¡ ½½·¡½¬¸¦ »ç¿ëÇÏÁö ¾Ê°í, ´Ü¾îµé »çÀÌ¿¡ »©±â
149 ±âÈ£¸¦ »ç¿ëÇÏ´Â °ÍÀÌ ÀϹÝÀûÀÌ´Ù. ±×·¡¼ Çڵ鷯 À̸§ÀÌ
150 media type°ú °ãÄ¡Áö ¾Ê´Â´Ù.</p>