summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_actions.xml.ko
blob: 43780deb643b98a3824acfb63967354d6d23372b (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
<?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: 1.8.2.1 -->
<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>