summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_actions.xml.ko
blob: e387a72b02ad2adf92d7ec2f3017c016d96d60a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding='EUC-KR' ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 421174 -->

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You 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

     http://www.apache.org/licenses/LICENSE-2.0

 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.
-->

<modulesynopsis metafile="mod_actions.xml.meta">

<name>mod_actions</name> 

<description>ÀÌ ¸ðµâÀº ¹Ìµð¾îÁ¾·ù³ª ¿äû¸Þ¼­µå¿¡ µû¶ó CGI
½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.</description>

<status>Base</status>
<sourcefile>mod_actions.c</sourcefile>
<identifier>actions_module</identifier>

<summary>
    <p>ÀÌ ¸ðµâ¿¡´Â µÎ°¡Áö Áö½Ã¾î°¡ ÀÖ´Ù. <directive
    module="mod_actions">Action</directive> Áö½Ã¾î´Â ¿äûÇÏ´Â
    ÆÄÀÏÀÇ Á¾·ù¿¡ µû¶ó CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù. <directive
    module="mod_actions">Script</directive> Áö½Ã¾î´Â ¿äûÀÌ
    ƯÁ¤ ¸Þ¼­µå¸¦ »ç¿ëÇÒ °æ¿ì CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù. ±×·¡¼­
    ÆÄÀÏÀ» ó¸®ÇÏ´Â ½ºÅ©¸³Æ®¸¦ ¸Å¿ì ½±°Ô ½ÇÇàÇÒ ¼ö ÀÖ´Ù.</p>
</summary>

<seealso><module>mod_cgi</module></seealso>
<seealso><a href="../howto/cgi.html">CGI·Î ÆäÀÌÁö ³»¿ë</a></seealso>
<seealso><a href="../handler.html">¾ÆÆÄÄ¡¿¡¼­ Çڵ鷯 »ç¿ë</a></seealso>

<directivesynopsis>
<name>Action</name>
<description>ƯÁ¤ Çڵ鷯³ª content-type¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
»ç¿ëÇÑ´Ù</description>
<syntax>Action <var>action-type</var> <var>cgi-script</var></syntax>
<contextlist>
<context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context>
</contextlist>
<override>FileInfo</override>

<usage>
    <p>ÀÌ Áö½Ã¾î´Â ¿äûÀÌ <var>action-type</var>À̸é
    <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼­¹ö¿¡ Ãß°¡ÇÑ´Ù.
    <var>cgi-script</var>´Â <directive
    module="mod_alias">ScriptAlias</directive>³ª <directive
    module="mod_mime">AddHandler</directive>¸¦ »ç¿ëÇÏ¿© CGI
    ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù.
    <var>action-type</var>¿¡´Â <a
    href="../handler.html">Çڵ鷯</a>³ª MIME content typeÀ»
    »ç¿ëÇÒ ¼ö ÀÖ´Ù. ÀÌ Áö½Ã¾î´Â PATH_INFO¿Í PATH_TRANSLATED
    CGI Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ ¹®¼­ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù.</p>

    <example><title>¿¹Á¦</title>
      # ƯÁ¤ Á¾·ùÀÇ ÆÄÀÏ ¿äû:<br />
      Action image/gif /cgi-bin/images.cgi<br />
      <br />
      # ƯÁ¤ÇÑ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏ<br />
      AddHandler my-file-type .xyz<br />
      Action my-file-type /cgi-bin/program.cgi<br />
    </example>

    <p>ù¹ø° ¿¹¿¡¼­ MIME content typeÀÌ <code>image/gif</code>ÀÎ
    ÆÄÀÏÀ» ¿äûÇϸé ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/images.cgi</code>°¡
    ´ë½Å ó¸®ÇÑ´Ù.</p>

    <p>µÎ¹ø° ¿¹¿¡¼­ È®ÀåÀÚ°¡ <code>.xyz</code>ÀÎ ÆÄÀÏÀ» ¿äûÇϸé
    ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/program.cgi</code>°¡
    ´ë½Å ó¸®ÇÑ´Ù.</p>
</usage>

<seealso><directive module="mod_mime">AddHandler</directive></seealso>
</directivesynopsis>

<directivesynopsis>
<name>Script</name>
<description>ƯÁ¤ ¿äû¸Þ¼­µå¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
»ç¿ëÇÑ´Ù.</description>
<syntax>Script <var>method</var> <var>cgi-script</var></syntax>
<contextlist>
<context>server config</context><context>virtual host</context>
<context>directory</context></contextlist>
<usage>
    <p>ÀÌ Áö½Ã¾î´Â ÆÄÀÏÀ» <var>method</var> ¸Þ¼­µå¸¦ »ç¿ëÇÏ¿©
    ¿äûÇϸé <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼­¹ö¿¡
    Ãß°¡ÇÑ´Ù. <var>cgi-script</var>´Â <directive
    module="mod_alias">ScriptAlias</directive>³ª <directive
    module="mod_mime">AddHandler</directive>¸¦ »ç¿ëÇÏ¿© CGI
    ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù. ÀÌ Áö½Ã¾î´Â PATH_INFO¿Í
    PATH_TRANSLATED CGI Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ ¹®¼­ÀÇ URL°ú
    ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù.</p>

    <note>
      ¾î¶² ¸Þ¼­µå À̸§ÀÌ¶óµµ »ç¿ëÇÒ ¼ö ÀÖ´Ù. <strong>¸Þ¼­µå À̸§Àº
      ´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÑ´Ù.</strong> ±×·¡¼­ <code>Script PUT</code>°ú
      <code>Script put</code>Àº ¿ÏÀüÈ÷ ´Ù¸£´Ù.
    </note>

    <p>Script ¸í·É¾î´Â ±âº»ÀûÀÎ Çൿ¸¸À» ó¸®ÇÔÀ» ÁÖÀÇÇ϶ó.
    CGI ½ºÅ©¸³Æ®°¡ ºÒ¸®°Å³ª, ¿äûÇÑ ¸Þ¼­µå¸¦ ¾Ë¾Æ¼­ ó¸®ÇÒ ¼ö
    ÀÖ´Â ¸®¼Ò½ºÀÇ °æ¿ì ±×´ë·Î ó¸®ÇÑ´Ù. <code>GET</code>
    ¸Þ¼­µåÀÇ Script´Â ÁúÀǾƱԸÕÆ®°¡ ÀÖÀ»¶§¸¸ (<em>¿¹</em>,
    foo.html?hi) »ç¿ëÇÔÀ» ÁÖÀÇÇ϶ó. ÁúÀǾƱԸÕÆ®°¡ ¾ø´Ù¸é
    Á¤»óÀûÀ¸·Î ¿äûÀ» ó¸®ÇÑ´Ù.</p>

    <example><title>¿¹Á¦</title>
      # &lt;ISINDEX&gt;½Ä °Ë»öÀ» À§ÇØ<br />
      Script GET /cgi-bin/search<br />
      <br />
      # CGI PUT Çڵ鷯<br />
      Script PUT /~bob/put.cgi<br />
    </example>
</usage>
</directivesynopsis>

</modulesynopsis>