logs.xml.ko revision 166c7891cc2a7545eca0f4dda6af92026bc43fcf
<?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: 105989:758929 (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.
-->
<manualpage metafile="logs.xml.meta">
<title>�����</title>
<summary>
<p>ȿ�������� �������� ���Ϸ��� �߻��ϴ� ������ �Բ� ������
Ȱ���� ���ɿ� ���� �˾ƾ� �Ѵ�. ����ġ �������� �ſ� �������̰�
������ �α� ����� �����Ѵ�. �� ������ �α� ����� �����ϴ�
���� �α׿� �� ������ �����Ѵ�.</p>
</summary>
<section id="security">
<title>���� ���</title>
<p>���������� ����ġ�� �α������� �ִ� ���丮�� ���������
�ִٸ� (���� root) ������ �����ϴ� uid�� ���� Ȯ���� ����
�� �ִ�. �̸� ��������ʰ� �αװ� ����� ���丮�� ���������
���� <em>����</em>. �ڼ��� ������ <a
href="misc/security_tips.html">���� ��</a> ������ ����϶�.</p>
<p>��, Ŭ���̾�Ʈ�� ������ ������ �α����Ͽ� ���� �״��
��ϵȴ�. �׷��� ���ǰ� �ִ� Ŭ���̾�Ʈ�� �α����Ͽ� ����ڸ�
���� �� �����Ƿ�, �α׸� �ٷ궧�� �����ؾ� �Ѵ�.</p>
</section>
<section id="errorlog">
<title>���� �α� (Error Log)</title>
<related>
<directivelist>
<directive module="core">ErrorLog</directive>
<directive module="core">LogLevel</directive>
</directivelist>
</related>
<p><directive module="core">ErrorLog</directive> ���þ��
���� �߿��� �α������� ���� ���� �α��� �̸��� ��ġ�� �����Ѵ�.
����ġ �������� �� ���Ͽ� ��������� ��û�� ó���ϴ� ����
�߻��� ���� ����Ѵ�. ������ �����ϰų� �����ϴµ� ������
�ִٸ� ������ �߸�Ǿ�� ������ ��� ��ġ������ �˷��ִ�
�̰��� ���� ���� ������� �Ѵ�.</p>
<p>���� �α״� ���� (���������� ���н� �ý��ۿ�����
<code>error_log</code>, ��������� OS/2������
<code>error.log</code>) ���Ͽ� ��ϵȴ�. ���н� �ý��ۿ���
������ ���� <code>syslog</code>�� <a href="#piped">��������
����Ͽ� �ٸ� ���α׷�</a>���� ���� ���� �ִ�.</p>
<p>���� �α��� ����� ��������� �����Ӱ� �ڼ��ϴ�. �׷���
��κ��� ���� �α� �׸� ���������� ������ ������ �ִ�.
���� ���, �׸��� ���� ������ ����.</p>
<example>
[Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1]
client denied by server configuration:
/export/home/live/ap/htdocs/test
</example>
<p>�α� �׸񿡼� ù��° �׸��� ��¥�� �ð��̴�. �ι�°
�׸��� �����ϴ� ������ �ɰ����� ��Ÿ����. <directive
module="core">LogLevel</directive> ���þ�� ���� �α׿�
��ϵǴ� ������ �ɰ����� ������ �� �ִ�. ����° �׸���
���� �߻��� Ŭ���̾�Ʈ�� IP �ּ��̴�. �� �������� ������
������, �� ��� ������ Ŭ���̾�Ʈ�� ������ �ź��ϵ���
�����Ǿ�ٰ� �����ִ�. ��û�� ������ (�� ��ΰ� �ƴ�)
���Ͻý��� ��ε� ���δ�.</p>
<p>���� �α׿��� �ſ� �پ��� ������ ������ ���� �� �ִ�.
��κ��� ���� ����ϴ�. CGI ��ũ��Ʈ�� ����� ��µ� ����
�α׿� ��ϵȴ�. CGI ��ũ��Ʈ�� <code>stderr</code>�� ��
������ �״�� ���� �α׷� ����ȴ�.</p>
<p>���� �α׿� ������ �߰��ϰ��� ���� �� ���. �׷���
��û�� ���� ���� �α��� ��� <a href="#accesslog">����
�α�</a>���� �����ϴ� �׸��� ����. ���� ���, ���� ���
�����ڵ尡 403�� ���� �α� �׸��� ����. ���� �α״�
����������� �� �����Ƿ� �� ������ ����Ͽ� ���� ��Ȳ��
���� �߰������� ���� �� �ִ�.</p>
<p>�˻��Ҷ� � ������ ������ ���� �α׸� ��� ���캸��
���� ����. ���н� �ý��ۿ��� ������ ���� �Ѵ�:</p>
<example>
tail -f error_log
</example>
</section>
<section id="accesslog">
<title>���� �α� (Access Log)</title>
<related>
<modulelist>
<module>mod_log_config</module>
<module>mod_setenvif</module>
</modulelist>
<directivelist>
<directive module="mod_log_config">CustomLog</directive>
<directive module="mod_log_config">LogFormat</directive>
<directive module="mod_setenvif">SetEnvIf</directive>
</directivelist>
</related>
<p>���� ���� �α״� ������ ó���ϴ� ��� ��û�� ����Ѵ�.
<directive module="mod_log_config">CustomLog</directive>
���þ�� ���� �α��� ��ġ�� ������ �����Ѵ�. <directive
module="mod_log_config">LogFormat</directive> ���þ
����Ͽ� �α׿� ������ ������ ���� ������ �� �ִ�. �� ����
������ ���� �α׿� �� ������ �����ϴ� ����� �����Ѵ�.</p>
<p>���� ���� �α׿� ������ ����ϴ� ���� �α� ���� ������
���̴�. ���� �ܰ�� �� ������ �м��Ͽ� ������ ��踦 �����
���̴�. �� ������ �Ϲ����� �α� �м��� ���ؼ� �ٷ��� ������,
�α� �м��� ���� �������� �� ���� �ƴϴ�. �α� �м��� ����
������ �α׸� �м��ϴ� ����Ʈ��� ���ؼ��� <a
href="http://dmoz.org/Computers/Software/Internet/Site_Management/Log_analysis/">Open Directory</a>��
<a href="http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/Log_Analysis_Tools/">Yahoo</a>��
����϶�.</p>
<p>����ġ �������� ������� mod_log_referer, mod_log_agent,
<directive module="mod_log_config">CustomLog</directive>
���� ���� ���þ ����Ͽ� ���� �α׸� �ٷ���. ������
<directive module="mod_log_config">CustomLog</directive>
���þ ������ ���þ���� ��� ����� �̾�޾Ҵ�.</p>
<p>���� �α��� ����� �ſ� ��������� �����ϴ�. ����� C��
printf(1) ��Ĺ��ڿ��� �ſ� ������ ��Ĺ��ڿ��� ����Ͽ�
�����Ѵ�. ���� �� ���� ����. ��Ĺ��ڿ��� ��밡����
��� ������ �˷��� <module>mod_log_config</module> <a
href="mod/mod_log_config.html#formats">��Ĺ��ڿ�</a>��
����϶�.</p>
<section id="common">
<title>Common �α� ���</title>
<p>���� ��� �������� ������ ������ ����.</p>
<example>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
CustomLog logs/access_log common
</example>
<p>�׷��� ������ �α� ��Ĺ��ڿ��� <em>����</em>
<code>common</code>���� �����Ѵ�. ��Ĺ��ڿ��� �ۼ�Ʈ
���þ��� �����Ǹ�, ������ � ������ ������� �˸���.
��Ĺ��ڿ��� �Ϲ� ���ڸ� ������ �״�� �α׿� ��µȴ�.
���ǥ ����(<code>"</code>)�� ����ϰ� �ʹٸ� �齽������
�տ� �ٿ��� ��Ĺ��ڿ��� ���� �ƴ��� ǥ���Ѵ�. ��Ĺ��ڿ���
�ٹٲ� "<code>\n</code>", �� "<code>\t</code>"�� ����
Ư�� �����ڸ� ����� �� �ִ�.</p>
<p><directive module="mod_log_config">CustomLog</directive>
���þ�� ������ <em>����</em>�� ����ϴ� ���ο� �α�������
�����. ���� �α��� ���ϸ��� �������� ��������������
<directive module="core">ServerRoot</directive>�� ������̴�.</p>
<p>���� ������ ����α����(Common Log Format, CLF)�̶��
������� �α� �׸��� ����Ѵ�. ���� �ٸ� �������鵵 �̷�
ǥ�� ������� �α׸� �����, ���� �α� �м� ���α׷�����
���� �� �ִ�. CLF�� ���� �α����� �׸��� ������ ����:</p>
<example>
127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET
/apache_pb.gif HTTP/1.0" 200 2326
</example>
<p>���� �α� �׸��� �� �κ��� �����Ѵ�.</p>
<dl>
<dt><code>127.0.0.1</code> (<code>%h</code>)</dt>
<dd>������ ��û�� �� Ŭ���̾�Ʈ(��� ȣ��Ʈ)�� IP
�ּ��̴�. <directive
module="core">HostnameLookups</directive>��
<code>On</code>�̶�� ȣ��Ʈ���� ã�Ƽ� IP �ּ� �ڸ���
��� ����. �׷��� �� ������ ������ �ſ� ������ �� ��
�����Ƿ� ��õ���� �ʴ´�. ȣ��Ʈ���� �˷��� ��� ���߿�
<a href="programs/logresolve.html">logresolve</a>��
���� �α׸� ó���ϴ� ���α׷��� ����ϴ� ���� ����.
���⿡ ���� IP �ּҴ� ����ڰ� ����ϴ� ��ǻ�� �ּҰ�
�ƴ� �� �ִ�. ���Ͻ� ������ ����ڿ� �������̿� �����Ѵٸ�,
�� ��ǻ�� �ּҰ� �ƴ϶� ���Ͻ��� �ּҰ� ��ϵ� ���̴�.</dd>
<dt><code>-</code> (<code>%l</code>)</dt>
<dd>��¿��� "�����ȣ"�� ��û�� ������ ������ ��Ÿ����.
�� ��� ���⿡ ���� ������ Ŭ���̾�Ʈ ��ǻ����
<code>identd</code>�� ������ Ŭ���̾�Ʈ�� RFC 1413
�ſ��̴�. �� ������ �ſ� ���� �� ��⶧����, �����
��Ǵ� ���� ��Ʈ���� �ƴ϶�� ���� �� ������ ����ϸ�
�ȵȴ�. <directive module="core">IdentityCheck</directive>��
<code>On</code>�� �ƴ϶�� ����ġ �������� �� ������
�˾ƺ����� �õ������� �ʴ´�.</dd>
<dt><code>frank</code> (<code>%u</code>)</dt>
<dd>�̴� HTTP �������� �˾Ƴ� ������ ��û�� �������
userid�̴�. ���� �� ���� CGI ��ũ��Ʈ����
<code>REMOTE_USER</code> ȯ�溯���� �Ѱ����. ��û��
�����ڵ尡 401�̶�� (�Ʒ� ���) ����ڰ� ���� ������
��ġ�� �ʾ����Ƿ� �� ���� ������ �ȵȴ�. ������ ��ȣ��
��ȣ���� �ʴ´ٸ� �� �׸��� ���� �׸�� ����
"<code>-</code>"�̴�.</dd>
<dt><code>[10/Oct/2000:13:55:36 -0700]</code>
(<code>%t</code>)</dt>
<dd>
������ ��ûó���� ��ģ �ð�.
�����:
<p class="indent">
<code>[day/month/year:hour:minute:second zone]<br />
day = ���� 2��<br />
month = ���� 3��<br />
year = ���� 4��<br />
hour = ���� 2��<br />
minute = ���� 2��<br />
second = ���� 2��<br />
zone = (`+' | `-') ���� 4��</code>
</p>
�α� ��Ĺ��ڿ��� <code>%{format}t</code>�� ����Ͽ�
�ٸ� ������� �ð��� ����� �� �ִ�. <code>format</code>��
C ǥ�� ���̺귯���� <code>strftime(3)</code>�� ����.
</dd>
<dt><code>"GET /apache_pb.gif HTTP/1.0"</code>
(<code>\"%r\"</code>)</dt>
<dd>Ŭ���̾�Ʈ�� ��û���� �ֵ��ǥ�� �����ִ�. ��û����
�ſ� ������ ������ ��� �ִ�. ù°, Ŭ���̾�Ʈ�� �����
�޽��� <code>GET</code>�̴�. ��°, Ŭ���̾�Ʈ�� �ڿ�
<code>/apache_pb.gif</code>�� ��û�Ѵ�. ����°, Ŭ���̾�Ʈ��
<code>HTTP/1.0</code> ���������� ����Ѵ�. ��û����
���� �κ��� ��� �α��� ���� �ִ�. ���� ���, ��Ĺ��ڿ�
"<code>%m %U%q %H</code>"�� "<code>%r</code>"�� �Ȱ���
�޽��, ���, ���ǹ��ڿ�, ���������� �α��Ѵ�.</dd>
<dt><code>200</code> (<code>%&gt;s</code>)</dt>
<dd>�̴� ������ Ŭ���̾�Ʈ���� ������ �����ڵ��̴�. ��
������ (2�� �����ϴ� �ڵ�) ��û�� �����Ͽ�����, (4��
�����ϴ� �ڵ�) Ŭ���̾�Ʈ�� ���� �ִ���, (5�� �����ϴ�
�ڵ�) ������ ���� �ִ��� �˷��ֹǷ� �ſ� �߿��ϴ�.
�����ڵ��� ��ü ����� <a
href="http://www.w3.org/Protocols/rfc2616/rfc2616.txt">HTTP
�Ծ�</a> (RFC2616 section 10)���� ã�� �� �ִ�.</dd>
<dt><code>2326</code> (<code>%b</code>)</dt>
<dd>������ �׸��� ���� ����� �����ϰ� Ŭ���̾�Ʈ����
������ ������ ũ�⸦ ��Ÿ����. Ŭ���̾�Ʈ���� ������
������ ��ٸ� �� ���� "<code>-</code>"�̴�. ������
��� ��� "<code>0</code>"�� �α��Ϸ��� ���
<code>%B</code>�� ����Ѵ�.</dd>
</dl>
</section>
<section id="combined">
<title>Combined �α� ���</title>
<p>���� ���Ǵ� �ٸ� ��Ĺ��ڿ��� ���յȷα����(Combined
Log Format)�̴�. ������ ���� ����Ѵ�.</p>
<example>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
\"%{User-agent}i\"" combined<br />
CustomLog log/access_log combined
</example>
<p>�� ����� �� �׸��� �� �߰��� ���� �����ϰ�� Common
�α� ��İ� ������ ����. �߰��� �׸���� �ۼ�Ʈ ���þ�
<code>%{<em>header</em>}i</code>�� ����Ѵ�. ���⼭
<em>header</em> �ڸ��� HTTP ��û ��� �̸��� ���� ��
�ִ�. �� ����� ���� �α״� ������ ����:</p>
<example>
127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET
/apache_pb.gif HTTP/1.0" 200 2326
"http://www.example.com/start.html" "Mozilla/4.08 [en]
(Win98; I ;Nav)"
</example>
<p>�߰��� �׸���:</p>
<dl>
<dt><code>"http://www.example.com/start.html"</code>
(<code>\"%{Referer}i\"</code>)</dt>
<dd>"Referer" (����� Ʋ�����ʾ���) HTTP ��û ���.
Ŭ���̾�Ʈ�� �����ߴٰ� �������� �˸� ����Ʈ�̴�.
(��, <code>/apache_pb.gif</code>�� ��ũ�Ͽ��ų� ������
����Ʈ�̴�.)</dd>
<dt><code>"Mozilla/4.08 [en] (Win98; I ;Nav)"</code>
(<code>\"%{User-agent}i\"</code>)</dt>
<dd>User-Agent HTTP ��û ���. Ŭ���̾�Ʈ ������
�ڽſ� ���� �˸��� �ĺ������̴�.</dd>
</dl>
</section>
<section id="multiple">
<title>���� ���� �α�</title>
<p>�������Ͽ� ���� <directive
module="mod_log_config">CustomLog</directive> ���þ
����ϸ� ���� �αװ� ������ ��������. ���� ���, ����
������ ������ ���� �α׸� �����. ù��°�� �⺻ CLF ������
����ϰ�, �ι�°�� ����°�� referer�� ������ ������
����Ѵ�. ������ �� <directive
module="mod_log_config">CustomLog</directive> ���� ���
���� <code>ReferLog</code>�� <code>AgentLog</code> ���þ���
����� �䳻�� �� �ִ��� �����ش�.</p>
<example>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
CustomLog logs/access_log common<br />
CustomLog logs/referer_log "%{Referer}i -&gt; %U"<br />
CustomLog logs/agent_log "%{User-agent}i"
</example>
<p>��, �� ���� <directive
module="mod_log_config">LogFormat</directive>���� �ݵ��
������ ������ �ʿ�� ������ �����ش�. ��� <directive
module="mod_log_config">CustomLog</directive> ���þ
���� �α� ����� ������ �� �ִ�.</p>
</section>
<section id="conditional">
<title>���Ǻ� �α�</title>
<p>Ŭ���̾�Ʈ ��û�� ���ݿ� ��� �ش� �׸��� ���� �α׿�
��������ʰ� ���� ���� �ִ�. <a href="env.html">ȯ�溯��</a>��
����ϸ� ���� �ذ�ȴ�. ����, Ŭ���̾�Ʈ�� Ư�� ������
�����ϸ� ȯ�溯���� �����Ѵ�. �� �۾����� ���� <directive
module="mod_setenvif">SetEnvIf</directive>�� ����Ѵ�.
�׸��� <directive module="mod_log_config">CustomLog</directive>
���þ <code>env=</code>�� ����Ͽ� ȯ�溯�� ������
��� ��û�� ���ְų� ����. ���� ���:</p>
<example>
# loop-back �������̽����� ��û�� ǥ���Ѵ�<br />
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog<br />
# robots.txt ���Ͽ� ���� ��û�� ǥ���Ѵ�<br />
SetEnvIf Request_URI "^/robots\.txt$" dontlog<br />
# �������� �α׿� �����<br />
CustomLog logs/access_log common env=!dontlog
</example>
<p>�ٸ� ���� ����� ������� ��û���� �� �α����Ͽ� ����ϰ�,
�񿵾�� ������� ��û�� �ٸ� �α����Ͽ� ����ϴ� ��츦
���غ���.</p>
<example>
SetEnvIf Accept-Language "en" english<br />
CustomLog logs/english_log common env=english<br />
CustomLog logs/non_english_log common env=!english
</example>
<p>���Ǻ� �α״� �ſ� �����ϰ� ����������, �̰��� �α�
������ �����ϴ� ������ ����� �ƴϴ�. �α������� ������
��� �ൿ�� ����Ҷ� �� �����ϴ�. ���߿� �������ʴ� ��û��
�����ϰ� �α������� �м��ϴ� ���� �� ����.</p>
</section>
</section>
<section id="rotation">
<title>�α� ��ȯ (Log Rotation)</title>
<p>���� �ٻ� ���������� �α����Ͽ� ����Ǵ� �������� �ſ�
����. ���� �α״� ���� ���� ��û�� 1MB �̻� �����Ѵ�. ���������
������ �α׸� �ű�ų� ����� ������� �α׸� �ֱ�������
��Ȱ�� �ʿ䰡 �ִ�. ����ġ�� ������ �����ִ� ���ȿ��� ���
���� �α����Ͽ� ���⶧���� ������ �������϶� �α׸� ��ȯ��
�� ���. ��� �α������� �ű�ų� ������ ������ <a
href="stopping.html">�����</a>�Ͽ�, �α������� ���� �����
�Ѵ�.</p>
<p><em>������</em> ������� ����ϸ� ������ Ŭ���̾�Ʈ��
������ Ȥ�� ���� ������ �����ʰ� �� �α������� �� �� �ִ�.
�׷��� �̸� ���� ������ ������ ��û�� ���񽺸� ������ ����
���� �α������� ��� ����ؾ� �Ѵ�. �׷��Ƿ� ���������
�α������� ó���ϱ� �� �󸶰� ��ٸ� �ʿ䰡 �ִ�. �Ϲ�������
������ ���� �α׸� ��ȯ�ϰ�, ��ũ���� ����ϱ����� ����
�α׸� �����Ѵ�:</p>
<example>
mv access_log access_log.old<br />
mv error_log error_log.old<br />
apachectl graceful<br />
sleep 600<br />
gzip access_log.old error_log.old
</example>
<p>�α׸� ��ȯ�ϴ� �ٸ� ����� ���� �� ������ <a
href="#piped">������ �α�</a>�� ����ϴ� ���̴�.</p>
</section>
<section id="piped">
<title>�α׸� �������� ������</title>
<p>����ġ �������� ���� �α׿� ���� �α׸� ���Ͽ� ����
�����ʰ� �������� ���� �ٸ� ���μ����� ���� �� �ִ�. ��
����� ����ϸ� ������ �ڵ带 �߰������ʰ? �ſ� �����ϰ�
�α׸� ó���� �� �ִ�. �α׸� �������� �������� ���ϸ�
�ڸ��� ���������� "<code>|</code>"�� �ڿ� ǥ���Է�����
�α� �׸��� ���� �������ϸ��� ������ �ȴ�. ����ġ�� ������
�����Ҷ� �������� ������ �α� ���μ����� �����ϰ�, ������
����Ǵ� ���� ���μ����� ������ �ٽ� �����Ѵ�. (�� ������
��ɶ����� �츮�� �� ����� "���� �� �ִ� ������ �α�"���
���.)</p>
<p>�������� ����� �α� ���μ����� �θ� ����ġ httpd ���μ�����
����, ���μ����� userid�� ����. ��, �������� ����� �α�
���α׷��� ���� root�� ����ȴ�. �׷��Ƿ� ���α׷��� �����ϰ�
�����ϰ� ����� ���� �ſ� �߿��ϴ�.</p>
<p>�������� �θ��� ��ü ��ɾ ���ǥ�� ������ ����϶�.
�� ���� ���� �α׿� ���� ��������, ���� �α׵� ��������.</p>
<p>������ ����������ʰ� �α׸� ��ȯ�� �� �ִ� ���� ������
�α׸� ����ϴ� �߿��� ������. ����ġ �������� �̸� ����
<a href="programs/rotatelogs.html">rotatelogs</a>��� ������
���α׷��� �����Ѵ�. ���� ��� 24�ð����� �α׸� ��ȯ�Ѵٸ�:</p>
<example>
CustomLog "|/usr/local/apache/bin/rotatelogs
/var/log/access_log 86400" common
</example>
<p>�ٸ� ����Ʈ�� <a
href="http://www.cronolog.org/">cronolog</a>��� ���������
�ξ� �� ������ �α� ��ȯ ���α׷��� �ִ�.</p>
<p>���Ǻ� �α׿� ���� ������ �α״� �ſ� ������ ��������,
���߿� ó���ϴ� ���� �� ������ ����� ������ ��� ����ؼ���
�ȵȴ�.</p>
</section>
<section id="virtualhost">
<title>����ȣ��Ʈ</title>
<p>���� <a href="vhosts/">����ȣ��Ʈ</a>�� �ִ� ������
��Ҷ� �������� ������� �α������� �ٷ� �� �ִ�. ����,
ȣ��Ʈ�� �Ѱ��� ������ ���� �α׸� ����� �� �ִ�. <directive
module="core" type="section">VirtualHost</directive> ������
�ƴ� �ּ��� ������ �α� ���þ �θ� ��� ��û�� ���� ����
�α׿� ���� �α׷� ��ϵȴ�. �� ����� ����ȣ��Ʈ���� ����
����� �� �� ���.</p>
<p><directive module="core" type="section">VirtualHost</directive>
���� �ȿ� <directive module="mod_log_config">CustomLog</directive>��
<directive module="core">ErrorLog</directive> ���þ
����ϸ� �ش� ����ȣ��Ʈ�� ���� ��û�� ������ ������
���Ͽ� ��ϵȴ�. �α� ���þ ��� �ٸ� ����ȣ��Ʈ�� ���
�ּ��� �α׿� �α׸� ����Ѵ�. �� ����� ����ȣ��Ʈ ������
���� ��� �ſ� ����������, ȣ��Ʈ ���� ���ٸ� ���ϱ�
�������. ��, <a href="vhosts/fd-limits.html">���ϱ���ڰ�
������</a> ������ ���� �߻��Ѵ�.</p>
<p>���� �α��� ��� �ſ� ���� �ذ�å�� �ִ�. �α� ��Ĺ��ڿ���
����ȣ��Ʈ�� ���� ������ �߰��ϸ� ��� ȣ��Ʈ�� ���� �α׸�
����ϰ�, ���߿� �α׸� ����ȣ��Ʈ���� ���� �� �ִ�. ����
���, ���� ���þ ����.</p>
<example>
LogFormat "%v %l %u %t \"%r\" %&gt;s %b"
comonvhost<br />
CustomLog logs/access_log comonvhost
</example>
<p><code>%v</code>�� ��û�� �����ϴ� ����ȣ��Ʈ �̸���
����Ѵ�. ���߿� <a href="programs/other.html">split-logfile</a>
���� ���α׷����� ���� �α׸� ����ȣ������ ���� �� �ִ�.</p>
</section>
<section id="other">
<title>�ٸ� �α�����</title>
<related>
<modulelist>
<module>mod_cgi</module>
<module>mod_rewrite</module>
</modulelist>
<directivelist>
<directive module="mpm_common">PidFile</directive>
<directive module="mod_rewrite">RewriteLog</directive>
<directive module="mod_rewrite">RewriteLogLevel</directive>
<directive module="mod_cgi">ScriptLog</directive>
<directive module="mod_cgi">ScriptLogBuffer</directive>
<directive module="mod_cgi">ScriptLogLength</directive>
</directivelist>
</related>
<section id="pidfile">
<title>PID ����</title>
<p>����ġ �������� �����Ҷ� <code>logs/httpd.pid</code>
���Ͽ� �θ� httpd ���μ����� process id�� �����Ѵ�. ��
���ϸ��� <directive module="mpm_common">PidFile</directive>
���þ�� ������ �� �ִ�. process-id�� ���ڰ� �θ� ���μ�����
�ñ׳��� ���� ������ ������ϰų� ���϶� ����Ѵ�.
����������� ��� -k �����ɼ��� ����Ѵ�. �� �ڼ���
������ <a href="stopping.html">�ߴܰ� �����</a> ��������
����϶�.</p>
</section>
<section id="scriptlog">
<title>��ũ��Ʈ �α�</title>
<p>������� �������� <directive
module="mod_cgi">ScriptLog</directive> ���þ ����Ͽ�
CGI ��ũ��Ʈ�� �Է°� ����� ����� �� �ִ�. �� ���þ��
���� �׽�Ʈ�����θ� ����ؾ� �Ѵ�. ���� ����ϴ� ��������
����ϸ� �ȵȴ�. �� �ڼ��� ������ <a
href="mod/mod_cgi.html">mod_cgi</a> ������ ����϶�.</p>
</section>
<section id="rewritelog">
<title>���ۼ� �α�</title>
<p><a href="mod/mod_rewrite.html">mod_rewrite</a>�� �����ϰ�
������ ����� ����Ѵٸ� ������� ���� ���� �׻� <directive
module="mod_rewrite">RewriteLog</directive>�� ����� �ʿ䰡
�ִ�. �� �α������� ���ۼ� ������ ��� ��û�� ��ȯ�ϴ�����
���� �ڼ��� �˷��ش�. �ڼ��� ������ <directive
module="mod_rewrite">RewriteLogLevel</directive> ���þ��
�����Ѵ�.</p>
</section>
</section>
</manualpage>