0N/A<?
xml version="1.0" encoding="EUC-KR" ?>
0N/A<!-- English Revision: 105989:395228 (outdated) --> 0N/A Licensed to the Apache Software Foundation (ASF) under one or more 0N/A contributor license agreements. See the NOTICE file distributed with 0N/A this work for additional information regarding copyright ownership. 0N/A The ASF licenses this file to You under the Apache License, Version 2.0 0N/A (the "License"); you may not use this file except in compliance with 0N/A the License. You may obtain a copy of the License at 0N/A Unless required by applicable law or agreed to in writing, software 0N/A distributed under the License is distributed on an "AS IS" BASIS, 0N/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1472N/A See the License for the specific language governing permissions and 1472N/A limitations under the License. 0N/A<
name>mod_log_config</
name>
0N/A<
description>�������� ��û�� �α� ����Ѵ�</
description>
0N/A<
status>Base</
status>
0N/A<
identifier>log_config_module</
identifier>
0N/A <
p>�� ����� Ŭ���̾�Ʈ�� ��û�� �α� �����Ӱ� ����Ѵ�.
0N/A �ڽ��� ���ϴ� ������� �α� ����� �� �ְ�, �����̳� �ܺ�
0N/A ���α��� ���� �α� ���� ���� �ִ�. ������ �α� ����ϸ�
0N/A ��û�� ���ݿ� ��� ��û�� �α� �߰��ϰų� ������ �� �ִ�.</
p>
0N/A <
p>�� ����� ������ ���þ �����Ѵ�. <
directive 0N/A module="mod_log_config">TransferLog</
directive>�� �������
0N/A �����, <
directive module="mod_log_config">LogFormat</
directive>��
0N/A ���ϴ� ����� ���ϰ�, <
directive 0N/A module="mod_log_config">CustomLog</
directive>�� �ѹ� �α����ϰ�
0N/A ����� ��� �����Ѵ�. <
directive>TransferLog</
directive>��
0N/A <
directive>CustomLog</
directive> ���þ ������ ����ϸ�
0N/A ��û�� ���� ���Ͽ� ����� �� �ִ�.</
p>
0N/A<
section id="formats"><
title>�α� ��� �����ϱ�</
title>
0N/A <
p><
directive module="mod_log_config">LogFormat</
directive>��
0N/A <
directive module="mod_log_config">CustomLog</
directive>
0N/A ���þ��� ��� �ƱԸ�Ʈ�� ���ڿ��̴�. �� ���ڿ��� ��� ��û��
0N/A �α����Ͽ� ����Ѵ�. ���ڿ����� �α����Ͽ� �״�� ����Ǵ�
0N/A ���ڿ� ��ٲް� ���� ��Ÿ���� C�� "\n"�� "\t" ����ڸ�
0N/A ����� �� �ִ�. �α����Ͽ� ���ǥ�� �齽������ ������ �տ�
0N/A �ݵ�� �齽������ ������ �Ѵ�.</
p>
0N/A <
p>��û�� Ư¡�� ��� ���ڿ��� "<
code>%</
code>" ���þ
0N/A ����Ͽ� ����Ѵ�. �� ���þ�� �α����Ͽ��� ������ ����
0N/A <
table border="1" style="zebra">
0N/A <
columnspec><
column width=".2"/><
column width=".8"/></
columnspec>
0N/A <
tr><
th>��� ���ڿ�</
th>
0N/A <
tr><
td><
code>%%</
code></
td>
0N/A <
td>�ۼ�Ʈ ��ȣ</
td></
tr>
0N/A <
td>��� IP-�ּ�</
td></
tr>
0N/A <
td>(����) IP-�ּ�</
td></
tr>
0N/A <
td>HTTP ����� ������ ��� ����Ʈ��.</
td></
tr>
0N/A <
td>HTTP ����� ������ ��� ����Ʈ��. CLF ��İ� ����
0N/A ����� ������ ��� ��� 0 ��� '<
code>-</
code>'�� ���´�.</
td></
tr>
0N/A <
tr><
td><
code>%...{<
var>Foobar</
var>}C</
code></
td>
0N/A <
td>������ ������ ��û���� <
var>Foobar</
var> ����
0N/A <
td>��û�� ó���ϴµ� �ɸ� �ð� (����ũ���� ����).</
td></
tr>
0N/A <
tr><
td><
code>%...{<
var>FOOBAR</
var>}e</
code></
td>
0N/A <
td>ȯ�溯�� <
var>FOOBAR</
var>�� ����</
td></
tr>
0N/A <
td>��� ȣ��Ʈ</
td></
tr>
0N/A <
td>��û ��������</
td></
tr>
0N/A <
tr><
td><
code>%...{<
var>Foobar</
var>}i</
code></
td>
0N/A <
td>������ ������ ��û���� <
code><
var>Foobar</
var>:</
code>
0N/A ����� ����.</
td></
tr>
0N/A <
td>(�ִٸ� identd�� ������) ��� �α��θ�.
0N/A <
module>mod_ident</
module>�� �ְ� <
directive 0N/A module="mod_ident">IdentityCheck</
directive>��
0N/A <
code>On</
code>�� �ƴϸ� �����ȣ�� ����Ѵ�.</
td></
tr>
0N/A <
td>��û ���</
td></
tr>
0N/A <
tr><
td><
code>%...{<
var>Foobar</
var>}n</
code></
td>
0N/A <
td>�ٸ� ����� ����� <
var>Foobar</
var> ��Ʈ(note)
0N/A <
tr><
td><
code>%...{<
var>Foobar</
var>}o</
code></
td>
0N/A <
td>������ <
code><
var>Foobar</
var>:</
code> ��� ����.</
td></
tr>
0N/A <
td>��û�� �����ϴ� ������ ���� ��Ʈ</
td></
tr>
0N/A <
td>��û�� �����ϴ� �ڽ��� ���μ��� ID.</
td></
tr>
0N/A <
tr><
td><
code>%...{<
var>format</
var>}P</
code></
td>
0N/A <
td>��û�� �����ϴ� �ڽ��� ���μ��� ID Ȥ�� ������
0N/A ID. format���� <
code>pid</
code>�� <
code>tid</
code>��
0N/A <
td>���ǹ��ڿ� (���ǹ��ڿ��� �ִٸ� �տ� <
code>?</
code>��
0N/A ���̰�, ��ٸ� �� ���ڿ�)</
td></
tr>
0N/A <
td>��û�� ù��° ��</
td></
tr>
0N/A <
td>����(status). ���� �����̷��ǵ� ��û�� ��� *��*
0N/A ��û�� �����̴�. ���� ��û�� ���´� <
code>%...>s</
code>.</
td></
tr>
0N/A <
td>common log format �ð� ���(ǥ�� ���� ���)�� �ð�</
td></
tr>
0N/A <
tr><
td><
code>%...{<
var>format</
var>}t</
code></
td>
0N/A <
td><
code>strftime(3)</
code> ��� format�� �ð�. (�����ð���
0N/A <
td>��û�� ó���ϴµ� �ɸ� �ð� (�� ����).</
td></
tr>
0N/A <
td>��� ����� (auth�� �����ϸ�, ����(<
code>%s</
code>)��
0N/A 401�� ��� �̻��� ���� ���� �� ����)</
td></
tr>
0N/A <
td>���ǹ��ڿ��� ������ ��û URL ���.</
td></
tr>
0N/A <
td>��û�� ������ ������ ���� <
directive 0N/A module="core">ServerName</
directive>.</
td></
tr>
0N/A <
td><
directive module="core">UseCanonicalName</
directive>
0N/A ������ �� ������.</
td></
tr>
0N/A <
td>������ �������� ���� ����.
0N/A <
columnspec><
column width=".2"/><
column width=".6"/></
columnspec>
0N/A <
tr><
td><
code>X</
code> =</
td>
0N/A <
td>������ ��ġ�� �� ������ ��������.</
td></
tr>
0N/A <
tr><
td><
code>+</
code> =</
td>
0N/A <
td>������ �����Ŀ��� ������ ����ִ�(keep alive).</
td></
tr>
0N/A <
tr><
td><
code>-</
code> = </
td>
0N/A <
td>������ ������ ������ ��������.</
td></
tr>
0N/A <
p>(����ġ 1.3 �Ĺ� ���� �� ���þ��
0N/A <
code>%
...c</
code>������, �������� ssl
0N/A <
code>%...{<
var>var</
var>}c</
code> ����� ���ļ�
0N/A �����ߴ�.)</
p></
td></
tr>
0N/A <
td>��û�� ����� ������ ���� ����Ʈ���� 0�� �� ���.
0N/A �̸� ����Ϸ��� <
module>mod_logio</
module>�� �ʿ��ϴ�.</
td></
tr>
0N/A <
td>����� ������ �۽� ����Ʈ���� 0�� �� ���. �̸�
0N/A ����Ϸ��� <
module>mod_logio</
module>�� �ʿ��ϴ�.</
td></
tr>
0N/A <
p>"<
var>...</
var>"���� (<
em>���� ���</
em>,
0N/A <
code>"%h %u %r %s %b"</
code>) �ƹ��͵� ��ų�, ���� ������
0N/A ������ ���´� (������ �������� ������ �ڸ��� "-"�� ����Ѵ�).
0N/A ������ �տ� "!"�� ���̰ų� �Ⱥ��� HTTP �����ڵ� �������
0N/A �ۼ��Ѵ�. ���� ���, "%400,501{User-agent}i"�� 400 (Bad
0N/A Request) ����� 501 (Not Implemented) �����϶���
0N/A <
code>User-agent:</
code>�� �α� �����,
0N/A "%!200,304,302{Referer}i"�� �������� ���°� <
em>�ƴ�</
em>
0N/A ��� ��û�� ���� <
code>Referer:</
code>�� �α� �����.</
p>
0N/A <
p>������ "<"�� ">"�� ���� �����̷��ǵ� ��û���� ����
0N/A ó�� ��û�� ������ ������ ��û�� ������ �����Ѵ�. �⺻������
0N/A <
code>%s, %U, %T, %D, %r</
code>�� ó�� ��û�� ����, ������
0N/A <
code>%</
code> ���þ�� ������ ��û�� ����. ����
0N/A <
code>%>s</
code>�� ��û�� ������ ����(status)�� ����ϰ�,
0N/A <
code>%<u</
code>�� �������� ��ȣ���� �ʴ� �ڿ����� ����
0N/A ����̷��ǵ� ��쿡�� ó���� ������ ����ڸ� ����Ѵ�.</
p>
0N/A <
p>2.0.46 ������ httpd 2.0 ������ <
code>%
...r</
code>,
0N/A <
code>%
...i</
code>, <
code>%
...o</
code>�� ��� ���ڿ��� �״��
�ξ��. ������ Common Log Format�� �䱸������ ������ؼ�����.
��, Ŭ���̾�Ʈ�� ����ڸ� �α� ������ �� �ֱ����
�α������� �״�� �ٷ� ���� �����ؾ� �Ѵ�.</
p>
<
p>���Ȼ� ������ 2.0.46���� ����� �� ��� ���ڳ� �ٸ� Ư�����ڸ�
<
code>\x<
var>hh</
var></
code>�� ǥ���Ѵ�. ���⼭ <
var>hh</
var>��
�ش� ����Ʈ�� 16��� ǥ���� ��Ÿ����. �� ��Ģ�� ���ܴ� �齽������
�տ� ���̴� <
code>"</
code>�� <
code>\</
code>, ���� C���
����� ��鹮�ڵ�(<
code>\n</
code>, <
code>\t</
code> ��)�̴�.</
p>
<
p>�Ϲ������� ���� ����ϴ� �α� ����� ������ ����.</
p>
<
dt>Common Log Format (CLF)</
dt>
<
dd><
code>"%h %l %u %t \"%r\" %>s %b"</
code></
dd>
<
dt>����ȣ��Ʈ ������ ������ Common Log Format</
dt>
<
dd><
code>"%v %h %l %u %t \"%r\" %>s %b"</
code></
dd>
<
dd><
code>"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\""</
code></
dd>
<
dd><
code>"%{Referer}i -> %U"</
code></
dd>
<
dt>Agent (������) �α� ���</
dt>
<
dd><
code>"%{User-agent}i"</
code></
dd>
<
p>��û�� �����ϴ� ������ ���� <
directive module="core">ServerName</
directive>�� <
directive module="mpm_common">Listen</
directive>�� ���� <
code>%v</
code>��
<
code>%p</
code>�� ����Ѵ�. �αм� ���α��� ������ ��û��
�����ϴ� ȣ��Ʈ�� �˱����� ����ȣ��Ʈ ã�� �˰?����
���� �ʿ��� �̵� ���� <
directive module="core">UseCanonicalName</
directive> ������ �����ϴ�.</
p>
<
section id="security"><
title>���Ȼ� ����� ��</
title>
<
p>������ �����ϴ� ����ڿܿ� �ٸ� ����ڰ� �α������� �����ϴ�
���丮�� ���� ������ ���� �� ���ȿ� ������ ������
<
description>��Ű�� �α� ��������� ����� ���ϸ��� �����Ѵ�</
description>
<
syntax>CookieLog <
var>filename</
var></
syntax>
<
contextlist><
context>server config</
context><
context>virtual host</
context>
<
compatibility>�� ���þ�� ������ �ʴ´�.</
compatibility>
<
p><
directive>CookieLog</
directive> ���þ�� ��Ű�� �α�
��������� ����� ���ϸ��� �����Ѵ�. ���ϸ��� <
directive module="core">ServerRoot</
directive>�� ������̴�. ��
���þ�� <
code>mod_cookies</
code>�� ȣȯ�� ���� ����������,
<
description>�α����� �̸��� ����� �����Ѵ�</
description>
<
syntax>CustomLog <
var>file</
var>|<
var>pipe</
var>
<
var>format</
var>|<
var>nickname</
var>
[env=[!]<
var>environment-variable</
var>]</
syntax>
<
contextlist><
context>server config</
context><
context>virtual host</
context>
<
p>������ ��û�� �α� ���涧 <
directive>CustomLog</
directive>
���þ ����Ѵ�. �α� ����� �����ϰ�, ȯ�溯���� ����Ͽ�
��û�� Ư¡�� ��� ���������� �α� ���� ���� �ִ�.</
p>
<
p>�α� ����� ��Ҹ� �����ϴ� ù��° �ƱԸ�Ʈ���� ����
<
dd><
directive module="core">ServerRoot</
directive>��
<
dd>���������� "<
code>|</
code>"�ڿ� �α� ������ ǥ���Է�����
<
note type="warning"><
title>����:</
title>
<
p>���α��� ����Ѵٸ� ���α��� �������� ������ �����
�������� ����ȴ�. ������ root�� �����Ѵٸ� ���α���
root�� �����ϹǷ� ���α��� �������� Ȯ���϶�.</
p>
<
note type="warning"><
title>����</
title>
<
p>���н��� �ƴ� �÷��� ���ϰ�θ� �Է��Ҷ� �÷�����
�齽������ ����ϴ��� �ݵ�� �������� ����ؾ� �Ѵ�.
�Ϲ������� �������Ͽ����� �� �������� ����ϴ� ����
<
p>�ι�° �ƱԸ�Ʈ�� �α����Ͽ� ����� ������ �����Ѵ�.
�� <
directive module="mod_log_config">LogFormat</
directive>����
������ <
var>nickname</
var>�� ����ϰų� ���� <
a href="#formats">�α� ���</
a> �� ������ <
var>format</
var>
���ڿ��� ����� �� �ִ�.</
p>
<
p>���� ���, ���� �� ���þ�� �Ȱ��� ���� �Ѵ�.</
p>
# ��� ���� ����� CustomLog<
br />
LogFormat "%h %l %u %t \"%r\" %>s %b" common<
br />
# ���� ��� ���ڿ��� ����� CustomLog<
br />
<
p>����° �ƱԸ�Ʈ�� �� �Ǹ�, Ư�� ���� ȯ�溯�� ������
��� ��û�� �α� ������� ���θ� �����Ѵ�. ��û�� ������
<
a href="/env.html">ȯ�溯��</
a>�� ���ǵ��ִٸ� (Ȥ��
'<
code>env=!<
var>name</
var></
code>'�� ����� ��� ��ٸ�)
<
p><
module>mod_setenvif</
module>�� <
module>mod_rewrite</
module>
����� ����Ͽ� ��û���� ȯ�溯���� ������ �� �ִ�. ����
���, ������ GIF ���� ���� ��� ��û�� �ּ��� �αװ� �ƴ�
�ٸ� �α����Ͽ� ����Ϸ���,</
p>
SetEnvIf Request_URI \.gif$ gif-image<
br />
<
description>�α����Ͽ� ����� ����� ����Ѵ�</
description>
<
syntax>LogFormat <
var>format</
var>|<
var>nickname</
var>
[<
var>nickname</
var>]</
syntax>
<
default>LogFormat "%h %l %u %t \"%r\" %>s %b"</
default>
<
contextlist><
context>server config</
context><
context>virtual host</
context>
<
p>�� ���þ�� ���� �α������� ����� �����Ѵ�.</
p>
<
p><
directive>LogFormat</
directive> ���þ�� �ΰ��� �������
����Ѵ�. ù��° ����� �ƱԸ�Ʈ�� �Ѱ��� ����Ͽ� ����
<
directive>TransferLog</
directive> ���þ���� ����� �α�
����� �����Ѵ�. �� �ƱԸ�Ʈ�� ���� <
a href="#formats">�α�
��� �����ϱ�</
a> �� ������ <
var>format</
var>�� ����
����ϰų�, ������ ������ <
directive>LogFormat</
directive>
���þ�� �̸� ������ (�α� ����� ��Ī�ϴ�) <
var>nickname</
var>��
<
p><
directive>LogFormat</
directive> ���þ��� �ι�° �����
<
var>format</
var>�� <
var>nickname</
var>�� �����Ѵ�. ����
�ڿ��� ����ϴ� <
directive>LogFormat</
directive>�̳� <
directive module="mod_log_config">CustomLog</
directive> ���þ �ݺ��ؼ�
��� ���ڿ��� ��� �Է��ϴ� ��� <
var>nickname</
var>�� �����
�� �ִ�. ��Ī�� �����ϴ� <
directive>LogFormat</
directive>
���þ�� <
strong>�� �ܿ��� �ƹ� ����� ���� �ʴ´�</
strong>.
��, ��Ī<
em>��</
em>�� �����ϸ�, ������ ����� ����ϰų�
����� �⺻������ ������ �ʴ´�. ���Ƿ� ������ ������
<
directive module="mod_log_config">TransferLog</
directive>
���þ ������ ���� �ʴ´�. ��,
<
directive>LogFormat</
directive>�� ��Ī���� �ٸ� ��Ī��
������ �� �ִ�. ��Ī �̸����� �ۼ�Ʈ ��ȣ(<
code>%</
code>)��
����� �� ������ �����϶�.</
p>
<
example><
title>����</
title>
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
<
description>�α����� ��ġ�� �����Ѵ�</
description>
<
syntax>TransferLog <
var>file</
var>|<
var>pipe</
var></
syntax>
<
contextlist><
context>server config</
context><
context>virtual host</
context>
module="mod_log_config">CustomLog</
directive> ���þ�� �ƱԸ�Ʈ��
����� ���������, �α� ����� ���� �����ϰų� ��û�� ���ǿ�
��� �α� ���� �� ���. ��� ���� �ֱ� ����� (��Ī��
�������� ����) <
directive module="mod_log_config">LogFormat</
directive> ���þ ������
�α� ����� ����Ѵ�. �̸� ����� �������� �ʾҴٸ� Common
<
example><
title>����</
title>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""<
br />