blob: f47125c71aef72a1a55fc67ab75db1cbe1d4d99c (
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
<?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: 151408:1673892 (outdated) -->
<!--
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> ���þ�� ��û�ϴ�
������ MIME content type�� ���� 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> [virtual]</syntax>
<contextlist>
<context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context>
</contextlist>
<override>FileInfo</override>
<compatibility><code>virtual</code> �����ڿ� �ڵ鷯�� ����ġ
2.1�� �߰��Ǿ���</compatibility>
<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��
����� �� �ִ�. �� ���þ�� <code>PATH_INFO</code>��
<code>PATH_TRANSLATED</code> CGI ǥ�� ȯ�溯���� ��û��
������ URL�� ���ϰ�θ� �����Ѵ�. <code>REDIRECT_HANDLER</code>
������ Ư�� ��û�� ����� �ڵ鷯�� �����Ѵ�.</p>
<example><title>����</title>
# Ư�� MIME content type�� ���� ��û:<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>
<p>In the second example, requests for files with a file extension of
<code>.xyz</code> are handled instead by the specified cgi script
<code>/cgi-bin/program.cgi</code>.</p>
<p>�������� <code>virtual</code> �����ڴ� ��û�� ������
������ �����ϴ��� �˻����� �ʵ��� �Ѵ�. ���� ���, ������
��ġ�� <directive>Action</directive> ���þ ����Ϸ���
��� �����ϴ�.</p>
<example><title>����</title>
<Location /news><br />
<indent>
SetHandler news-handler<br />
Action news-handler /cgi-bin/news.cgi virtual<br />
</indent>
</Location>
</example>
</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����̴�. �� ���þ��
<code>PATH_INFO</code>�� <code>PATH_TRANSLATED</code> CGI
ǥ�� ȯ�溯���� ��û�� ������ URL�� ���ϰ�θ� �����Ѵ�.</p>
<note>
� ���� �̸��̶� ����� �� �ִ�. <strong>���� �̸���
��ҹ��ڸ� �����Ѵ�.</strong> ���� <code>Script PUT</code>��
<code>Script put</code>�� ������ �ٸ���.
</note>
<p><directive>Script</directive> ���ɾ�� �⺻���� �ൿ����
ó������ �����϶�. CGI ��ũ��Ʈ�� �Ҹ��ų�, ��û�� ���带
�˾Ƽ� ó���� �� �ִ� ���ҽ��� ��� �״�� ó���Ѵ�.
<code>GET</code> ������ <directive>Script</directive>��
���ǾƱԸ�Ʈ�� �������� (<em>��</em>, foo.html?hi) �������
�����϶�. ���ǾƱԸ�Ʈ�� ���ٸ� ���������� ��û�� ó���Ѵ�.</p>
<example><title>����</title>
# <ISINDEX>�� �˻��� ����<br />
Script GET /cgi-bin/search<br />
<br />
# CGI PUT �ڵ鷯<br />
Script PUT /~bob/put.cgi<br />
</example>
</usage>
</directivesynopsis>
</modulesynopsis>
|