1 <?xml version="1.0" encoding='EUC-KR' ?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 151408:1437836 (outdated) -->
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
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 <modulesynopsis metafile="mod_actions.xml.meta">
25 <name>mod_actions</name>
27 <description>ÀÌ ¸ðµâÀº ¹Ìµð¾îÁ¾·ù³ª ¿äû¸Þ¼µå¿¡ µû¶ó CGI
28 ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.</description>
31 <sourcefile>mod_actions.c</sourcefile>
32 <identifier>actions_module</identifier>
35 <p>ÀÌ ¸ðµâ¿¡´Â µÎ°¡Áö Áö½Ã¾î°¡ ÀÖ´Ù. <directive
36 module="mod_actions">Action</directive> Áö½Ã¾î´Â ¿äûÇÏ´Â
37 ÆÄÀÏÀÇ MIME content type¿¡ µû¶ó CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.
38 <directive module="mod_actions">Script</directive> Áö½Ã¾î´Â
39 ¿äûÀÌ Æ¯Á¤ ¸Þ¼µå¸¦ »ç¿ëÇÒ °æ¿ì CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.
40 ±×·¡¼ ÆÄÀÏÀ» ó¸®ÇÏ´Â ½ºÅ©¸³Æ®¸¦ ¸Å¿ì ½±°Ô ½ÇÇàÇÒ ¼ö ÀÖ´Ù.</p>
43 <seealso><module>mod_cgi</module></seealso>
44 <seealso><a href="../howto/cgi.html">CGI·Î µ¿Àû ÆäÀÌÁö »ý¼º</a></seealso>
45 <seealso><a href="../handler.html">¾ÆÆÄÄ¡¿¡¼ Çڵ鷯 »ç¿ë</a></seealso>
49 <description>ƯÁ¤ Çڵ鷯³ª content-type¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
50 »ç¿ëÇÑ´Ù</description>
51 <syntax>Action <var>action-type</var> <var>cgi-script</var> [virtual]</syntax>
53 <context>server config</context><context>virtual host</context>
54 <context>directory</context><context>.htaccess</context>
56 <override>FileInfo</override>
57 <compatibility><code>virtual</code> ¼öÁ¤ÀÚ¿Í Çڵ鷯´Â ¾ÆÆÄÄ¡
58 2.1¶§ Ãß°¡µÇ¾ú´Ù</compatibility>
61 <p>ÀÌ Áö½Ã¾î´Â ¿äûÀÌ <var>action-type</var>À̸é
62 <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼¹ö¿¡ Ãß°¡ÇÑ´Ù.
63 <var>cgi-script</var>´Â <directive
64 module="mod_alias">ScriptAlias</directive>³ª <directive
65 module="mod_mime">AddHandler</directive>¸¦ »ç¿ëÇÏ¿© CGI
66 ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù.
67 <var>action-type</var>¿¡´Â <a
68 href="../handler.html">Çڵ鷯</a>³ª MIME content typeÀ»
69 »ç¿ëÇÒ ¼ö ÀÖ´Ù. ÀÌ Áö½Ã¾î´Â <code>PATH_INFO</code>¿Í
70 <code>PATH_TRANSLATED</code> CGI Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ
71 ¹®¼ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù. <code>REDIRECT_HANDLER</code>
72 º¯¼ö·Î ƯÁ¤ ¿äû¿¡ »ç¿ëÇÒ Çڵ鷯¸¦ Àü´ÞÇÑ´Ù.</p>
74 <example><title>¿¹Á¦</title>
75 # ƯÁ¤ MIME content typeÀÇ ÆÄÀÏ ¿äû:<br />
76 Action image/gif /cgi-bin/images.cgi<br />
78 # ƯÁ¤ÇÑ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏ<br />
79 AddHandler my-file-type .xyz<br />
80 Action my-file-type /cgi-bin/program.cgi<br />
83 <p>ù¹ø° ¿¹¿¡¼ MIME content typeÀÌ <code>image/gif</code>ÀÎ
84 ÆÄÀÏÀ» ¿äûÇϸé ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/images.cgi</code>°¡
87 <p>µÎ¹ø° ¿¹¿¡¼ È®ÀåÀÚ°¡ <code>.xyz</code>ÀÎ ÆÄÀÏÀ» ¿äûÇϸé
88 ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/program.cgi</code>°¡
90 <p>In the second example, requests for files with a file extension of
91 <code>.xyz</code> are handled instead by the specified cgi script
92 <code>/cgi-bin/program.cgi</code>.</p>
94 <p>¼±ÅÃÀûÀÎ <code>virtual</code> ¼öÁ¤ÀÚ´Â ¿äûÇÑ ÆÄÀÏÀÌ
95 ½ÇÁ¦·Î Á¸ÀçÇÏ´ÂÁö °Ë»çÇÏÁö ¾Êµµ·Ï ÇÑ´Ù. ¿¹¸¦ µé¾î, °¡»óÀÇ
96 À§Ä¡¿¡ <directive>Action</directive> Áö½Ã¾î¸¦ »ç¿ëÇÏ·Á´Â
99 <example><title>¿¹Á¦</title>
100 <Location /news><br />
102 SetHandler news-handler<br />
103 Action news-handler /cgi-bin/news.cgi virtual<br />
109 <seealso><directive module="mod_mime">AddHandler</directive></seealso>
114 <description>ƯÁ¤ ¿äû¸Þ¼µå¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
115 »ç¿ëÇÑ´Ù.</description>
116 <syntax>Script <var>method</var> <var>cgi-script</var></syntax>
118 <context>server config</context><context>virtual host</context>
119 <context>directory</context></contextlist>
121 <p>ÀÌ Áö½Ã¾î´Â ÆÄÀÏÀ» <var>method</var> ¸Þ¼µå¸¦ »ç¿ëÇÏ¿©
122 ¿äûÇϸé <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼¹ö¿¡
123 Ãß°¡ÇÑ´Ù. <var>cgi-script</var>´Â <directive
124 module="mod_alias">ScriptAlias</directive>³ª <directive
125 module="mod_mime">AddHandler</directive>¸¦ »ç¿ëÇÏ¿© CGI
126 ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù. ÀÌ Áö½Ã¾î´Â
127 <code>PATH_INFO</code>¿Í <code>PATH_TRANSLATED</code> CGI
128 Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ ¹®¼ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù.</p>
131 ¾î¶² ¸Þ¼µå À̸§ÀÌ¶óµµ »ç¿ëÇÒ ¼ö ÀÖ´Ù. <strong>¸Þ¼µå À̸§Àº
132 ´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÑ´Ù.</strong> ±×·¡¼ <code>Script PUT</code>°ú
133 <code>Script put</code>Àº ¿ÏÀüÈ÷ ´Ù¸£´Ù.
136 <p><directive>Script</directive> ¸í·É¾î´Â ±âº»ÀûÀÎ Çൿ¸¸À»
137 ó¸®ÇÔÀ» ÁÖÀÇÇ϶ó. CGI ½ºÅ©¸³Æ®°¡ ºÒ¸®°Å³ª, ¿äûÇÑ ¸Þ¼µå¸¦
138 ¾Ë¾Æ¼ ó¸®ÇÒ ¼ö ÀÖ´Â ¸®¼Ò½ºÀÇ °æ¿ì ±×´ë·Î ó¸®ÇÑ´Ù.
139 <code>GET</code> ¸Þ¼µåÀÇ <directive>Script</directive>´Â
140 ÁúÀǾƱԸÕÆ®°¡ ÀÖÀ»¶§¸¸ (<em>¿¹</em>, foo.html?hi) »ç¿ëÇÔÀ»
141 ÁÖÀÇÇ϶ó. ÁúÀǾƱԸÕÆ®°¡ ¾ø´Ù¸é Á¤»óÀûÀ¸·Î ¿äûÀ» ó¸®ÇÑ´Ù.</p>
143 <example><title>¿¹Á¦</title>
144 # <ISINDEX>½Ä °Ë»öÀ» À§ÇØ<br />
145 Script GET /cgi-bin/search<br />
147 # CGI PUT Çڵ鷯<br />
148 Script PUT /~bob/put.cgi<br />