handler.xml.ko revision 1bfdf8fb8f8a5c5b58cfc6cc8e59050b25580ab9
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ko.xsl"?>
<!-- English Revision: 125278 -->
<!--
Copyright 2003-2005 The Apache Software Foundation or its licensors,
as applicable.
Licensed 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.
-->
<manualpage metafile="handler.xml.meta">
<title>����ġ���� �ڵ鷯 ���</title>
<summary>
<p>�� ������ ����ġ���� �ڵ鷯�� ����ϴ� ����� �����Ѵ�.</p>
</summary>
<section id="definition">
<title>�ڵ鷯�� �����ΰ�</title>
<related>
<modulelist>
<module>mod_actions</module>
<module>mod_asis</module>
<module>mod_cgi</module>
<module>mod_imap</module>
<module>mod_info</module>
<module>mod_mime</module>
<module>mod_negotiation</module>
<module>mod_status</module>
</modulelist>
<directivelist>
<directive module="mod_actions">Action</directive>
<directive module="mod_mime">AddHandler</directive>
<directive module="mod_mime">RemoveHandler</directive>
<directive module="core">SetHandler</directive>
</directivelist>
</related>
<p>������ ��û�Ҷ� ����ġ�� ���������� ������ �۾���
"�ڵ鷯(handler)"��� �Ѵ�. �Ϲ������� ������ ���� ����
��� �Ϲ����� �ڵ鷯�� ������ �ִ�. ��� ������ ���� ������
������ ����������, � ���� ����� ��� "ó���ȴ�(handled)".</p>
<p>Apache 1.1���� �ڵ鷯�� ��������� ����� �� �ְ� �Ǿ��.
���� ����� ������ �ڵ鷯�� ������ Ȯ���ڳ� ��ġ�� ���
������ �� �ִ�. �̴� �� �Ǹ��� ����̰� ������ ����� �ڵ鷯
�� ��ο� ������ �� �ֱ⶧���� ����. (<a
href="mod/mod_mime.html#multipleext">���� Ȯ���ڸ� ���� ����</a>��
���)</p>
<p>�ڵ鷯�� ������ ���� �����Ͽ�, <directive
module="mod_actions">Action</directive> ���þ�� �߰���
�� �ִ�. ǥ�� �������� �ִ� �⺻ �ڵ鷯�� ������ ����:</p>
<ul>
<li><strong>default-handler</strong>: ������ ������
ó���ϱ����� �⺻������ ����ϴ� �ڵ鷯
<code>default_handler()</code>�� ����Ͽ� ������ ������.
(core)</li>
<li><strong>send-as-is</strong>: HTTP ����� �ִ� ������
�״�� ������. (<module>mod_asis</module>)</li>
<li><strong>cgi-script</strong>: ������ CGI�� ó���Ѵ�.
(<module>mod_cgi</module>)</li>
<li><strong>imap-file</strong>: imagemap ��Ģ ���Ϸ�
ó���Ѵ�. (<module>mod_imap</module>)</li>
<li><strong>server-info</strong>: ������ ���� ������
�˷��ش�. (<module>mod_info</module>)</li>
<li><strong>server-status</strong>: ������ ���¸� �����Ѵ�.
(<module>mod_status</module>)</li>
<li><strong>type-map</strong>: ������� �����
type map���� ó���Ѵ�.
(<module>mod_negotiation</module>)</li>
</ul>
</section>
<section id="examples">
<title>����</title>
<section id="example1">
<title>CGI ��ũ��Ʈ�� ����Ͽ� ������ ���� �����ϱ�</title>
<p>���� ���þ�� Ȯ���ڰ� <code>html</code>�� ������
��û�� ��� <code>footer.pl</code> CGI ��ũ��Ʈ�� ����.</p>
<example>
Action add-footer /cgi-bin/footer.pl<br/>
AddHandler add-footer .html
</example>
<p>CGI ��ũ��Ʈ��
(<code>PATH_TRANSLATED</code> ȯ�溯���� ��Ī�ϴ�) ��
��û�� ������ ������ ������ �� ������.</p>
</section>
<section id="example2">
<title>HTTP ����� �����ϴ� ����</title>
<p>���� ���þ�� HTTP ����� �����ϴ� ���Ͽ�
<code>send-as-is</code> �ڵ鷯�� �����Ѵ�.
<code>/web/htdocs/asis/</code> ���丮 �ȿ� �ִ� ���
������ Ȯ���ڿ� ������ <code>send-as-is</code> �ڵ鷯��
ó���Ѵ�.</p>
<example>
&lt;Directory /web/htdocs/asis&gt;<br/>
SetHandler send-as-is<br/>
&lt;/Directory&gt;
</example>
</section>
</section>
<section id="programmer">
<title>���α׷��Ӹ� ���� ����</title>
<p>�ڵ鷯 ����� �����ϱ����� ���������
<a href="developer/API.html">Apache API</a>�� �߰��Ǿ��.
Ư�� <code>request_rec</code> ����ü�� ���ο� �ʵ尡
�߰��Ǿ��:</p>
<example>
char *handler
</example>
<p>����� �ڵ鷯�� ����Ϸ���, ��û��
<code>invoke_handler</code> �ܰ� ����
<code>r-&gt;handler</code>�� �ڵ鷯 �̸��� �������ֱ⸸
�ϸ� �ȴ�. �ڵ鷯�� content type ��� �ڵ鷯 �̸��� �����
���� �����ϰ�� ��� ���� �����Ǿ��. �� ��ų �ʿ�� ������
�ڵ鷯 �̸��� �������� ������� �ʰ�, �ܾ�� ���̿� ����
��ȣ�� ����ϴ� ���� �Ϲ����̴�. �׷��� �ڵ鷯 �̸���
media type�� ��ġ�� �ʴ´�.</p>
</section>
</manualpage>