mod_cgi.xml.ko revision 17ade6df5ec233536985eb1c130a906c725dd614
<?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: 105989:1330964 (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_cgi.xml.meta">
<name>mod_cgi</name>
<description>CGI ��ũ��Ʈ ����</description>
<status>Base</status>
<sourcefile>mod_cgi.c</sourcefile>
<identifier>cgi_module</identifier>
<summary>
<!-- XXX: Should mention Options ExecCGI
is the link to howto/cgi not sufficient? -nd
-->
<p>������ mime type�� <code>application/x-httpd-cgi</code>�̰ų�
(����ġ 1.1 ����) �ڵ鷯�� <code>cgi-script</code>�� ���
������ CGI ��ũ��Ʈ�� �ν��Ͽ�, �����ϰ�, �� ��� Ŭ���̾�Ʈ����
������. ������ <directive module="mod_mime">AddType</directive>
���þ�� ������ Ȯ���ڸ� �����ų�, <directive
module="mod_alias">ScriptAlias</directive> ���丮 �ȿ�
������ CGI�� ó���ȴ�.</p>
<p>������ CGI ��ũ��Ʈ�� �θ��� <code>DOCUMENT_ROOT</code>���
ȯ�溯���� �߰��Ѵ�. �� ������ <directive
module="core">DocumentRoot</directive> �������� �����.</p>
<p>����ġ���� CGI ��ũ��Ʈ�� ����ϴ� ��� ���� �Ұ���
<a href="/howto/cgi.html">CGI�� ���� ������ ��</a> ���丮����
����϶�.</p>
<p>���н����� ���߾����� MPM�� ����Ѵٸ� �� �����
<module>mod_cgid</module> ����� ����ؾ� �Ѵ�. �����
���忡�� �� �� ����� �⺻������ �����ϴ�.</p>
</summary>
<seealso><directive module="core">AcceptPathInfo</directive></seealso>
<seealso><directive module="core">Options</directive></seealso>
<seealso><directive module="mod_alias">ScriptAlias</directive></seealso>
<seealso><directive module="mod_mime">AddHandler</directive></seealso>
<seealso><a href="/suexec.html">�ٸ� ����� ID�� CGI ���α׷�
�����ϱ�</a></seealso>
<seealso><a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ǥ��</a></seealso>
<section id="env"><title>CGI ȯ�溯��</title>
<p>������ ������ ���� ������� <a
href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ǥ��</a>�� �����ϴ�
CGI ȯ�溯���� �����Ѵ�:</p>
<dl>
<dt>PATH_INFO</dt>
<dd>�� ������ <directive module="core"
>AcceptPathInfo</directive> ���þ ���� <code>off</code>��
������ ��쿡�� �����Ѵ�. <directive
>AcceptPathInfo</directive>�� ��� ��� ������ �⺻������
��� ������ �ִ� ��û�� ���� 404 NOT FOUND ���� ������,
<module>mod_cgi</module>�� ��� ������ (URI���� ��ũ��Ʈ
���ϸ� �ڿ� ������ <code>/more/path/info</code>) �޴´�.
<directive>AcceptPathInfo</directive> ���þ ���ϸ�
<module>mod_cgi</module> ��û�� ���ؼ� <directive
module="core">AcceptPathInfo</directive>�� <code>On</code>����
������ �Ͱ� ����.</dd>
<dt>REMOTE_HOST</dt>
<dd>�� ������ <directive module="core"
>HostnameLookups</directive>�� <code>on</code>�̰� (�⺻����
off), ������ ȣ��Ʈ �ּҸ� ��DNS �˻��Ͽ� ���� ȣ��Ʈ����
ã�� ��쿡�� �����Ѵ�.</dd>
<dt>REMOTE_IDENT</dt>
<dd>�� ������ <directive module="core"
>IdentityCheck</directive>�� <code>on</code>�̰�, ������
ȣ��Ʈ�� ident ���������� �����ϴ� ��쿡�� �����Ѵ�.
���� �� ���� ���� �� �ֱ⶧���� �� ������ ������ ������
�ȵǰ�, Ŭ���̾�Ʈ�� ���� ���̿� ���Ͻð� �ִٸ� ����
������ ������ ���ǹ����� �����϶�.</dd>
<dt>REMOTE_USER</dt>
<dd>CGI ��ũ��Ʈ�� ������ ���ľ��ϴ� ��쿡�� �����Ѵ�.</dd>
</dl>
</section>
<section id="cgi-debug"><title>CGI �����</title>
<p>��𿡼� �߸� ����Ǵ��� ��ũ��Ʈ�� ����� (ǥ����°�
ǥ�ؿ���) �� �� ��⶧���� CGI ��ũ��Ʈ�� ���������� ������ϱ�
������. ����ġ 1.2 ���Ŀ� �߰��� ���þ ����ϸ� �߻���
���� �ڼ��� �α׿� ���� �� �ִ�.</p>
<section><title>CGI ����� ���</title>
<p>CGI ����α״� ���������� �������� ���� CGI�� ����Ѵ�.
���� �߻��� CGI ��ũ��Ʈ�� �α׿� ���� ���� ������ �����.
ù��° �� ���� �׻� �Ʒ��� ���� ����̴�:</p>
<example>
%% [<var>�ð�</var>] <var>��û��</var><br />
%% <var>HTTP-����</var> <var>CGI-��ũ��Ʈ-���ϸ�</var>
</example>
<p>CGI ��ũ��Ʈ�� ������ �� ��� ������ ��� �α����Ͽ�
�߰��� �� ���� �� ����Ѵ�:</p>
<example>
%%error<br />
<var>����</var>
</example>
<p>��ũ��Ʈ�� (���� ��ũ��Ʈ�� ���׶�����) �߸�� ���
������ ��ȯ�ϴ� ���, ���� ������ �α׿� ����Ѵ�:</p>
<example>
%request<br />
<var>���� ��� HTTP ���</var><br />
<var>(�ִٸ�) POST�� PUT ����</var><br />
%response<br />
<var>CGI ��ũ��Ʈ ����� ��� ���</var><br />
%stdout<br />
<var>CGI ǥ�����</var><br />
%stderr<br />
<var>CGI ǥ�ؿ���</var><br />
</example>
<p>(��ũ��Ʈ�� ǥ������̳� ǥ�ؿ��� �ƹ� ���뵵 �������
�ʾҴٸ� %stdout�� %stderr �κ��� ��� �� �ִ�).</p>
</section>
</section>
<directivesynopsis>
<name>ScriptLog</name>
<description>CGI ��ũ��Ʈ ����α������� ��ġ</description>
<syntax>ScriptLog <var>file-path</var></syntax>
<contextlist><context>server config</context>
<context>virtual host</context></contextlist>
<modulelist><module>mod_cgi</module><module>mod_cgid</module>
</modulelist>
<usage>
<p><directive>ScriptLog</directive> ���þ�� CGI ��ũ��Ʈ
����α������� �����Ѵ�. <directive>ScriptLog</directive>��
������������� ����α׸� ������ �ʴ´�. ����ϸ� �ƱԸ�Ʈ��
������ ���Ͽ� CGI ���� ����Ѵ�. ����θ� �����ϸ�
<directive module="core">ServerRoot</directive>�� ����η�
�޾Ƶ��δ�.
</p>
<example><title>����</title>
ScriptLog logs/cgi_log
</example>
<p>�ڽ� ���μ����� �����ϴ� �����, <em>��</em> <directive
module="mpm_common">User</directive> ���þ�� ������ �����
�������� �α׸� ����. �׷��� �� ����ڰ� ��ũ��Ʈ �αװ�
�ִ� ���丮�� ��������� �ִ���, ���� �̸� ������ ����
�� ����ڿ��� ��������� ��� �Ѵ�. ��ũ��Ʈ �α׸� �� �α�
���丮�� �дٸ� �ڽ� ���μ����� �����ϴ� ����ڿ��� ���������
�ֱ����� ���丮 ������ �������� <strong>����</strong>.</p>
<p>��ũ��Ʈ �α״� CGI ��ũ��Ʈ�� �ۼ��Ҷ� ������� ����
�뵵���� ������ �����ϴ� ���� ��� ����ϱ������� �ƴ���
�����϶�. �ӵ��� ȿ�����鿡�� ����ȭ�� �ȵ��ְ�, ������
�����̿��� ������� ����ϸ� ���Ȼ� ������ �� �� �ִ�.</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>ScriptLogLength</name>
<description>CGI ��ũ��Ʈ �α������� ũ�� ����</description>
<syntax>ScriptLogLength <var>bytes</var></syntax>
<default>ScriptLogLength 10385760</default>
<contextlist><context>server config</context>
<context>virtual host</context></contextlist>
<modulelist><module>mod_cgi</module><module>mod_cgid</module>
</modulelist>
<usage>
<p><directive>ScriptLogLength</directive>�� CGI ��ũ��Ʈ
�α������� ũ�⸦ �����Ѵ�. CGI ���� �߻��Ҷ����� (���
��û ���, ��� ��ũ��Ʈ ��� ��) ���� ������ �α׿�
��ϵDZ⶧���� ������ �ſ� Ŀ�� �� �ִ�. ������ ������ Ŀ����
������ �������� �� ���þ ����Ͽ� CGI �α������� �ִ�
����ũ�⸦ �����Ѵ�. ������ ũ�Ⱑ ������ ���� ������ ��
�̻� ������ ��������ʴ´�.</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>ScriptLogBuffer</name>
<description>��ũ��Ʈ �α׿� ����� PUT Ȥ�� POST ��û�� �ִ뷮</description>
<syntax>ScriptLogBuffer <var>bytes</var></syntax>
<default>ScriptLogBuffer 1024</default>
<contextlist><context>server config</context>
<context>virtual host</context></contextlist>
<modulelist><module>mod_cgi</module><module>mod_cgid</module>
</modulelist>
<usage>
<p>ū ������ �޾Ƽ� �α������� �ʹ� ���� Ŀ���� ������ ��������
���Ͽ� ����� PUT Ȥ�� POST ������ ũ�⸦ �����Ѵ�. �⺻������
1024 ����Ʈ���� �α׿� ���������, �� ���þ ����Ͽ�
������ �� �ִ�.</p>
</usage>
</directivesynopsis>
</modulesynopsis>