1<?xml version="1.0" encoding="EUC-KR"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
4        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5              This file is generated from xml source: DO NOT EDIT
6        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7      -->
8<title>����� - Apache HTTP Server</title>
9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
12<script src="/style/scripts/prettify.min.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body id="manual-page"><div id="page-header">
17<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p>
18<p class="apache">Apache HTTP Server Version 2.4</p>
19<img alt="" src="/images/feather.gif" /></div>
20<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
21<div id="path">
22<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>�����</h1>
23<div class="toplang">
24<p><span>������ ���: </span><a href="/en/logs.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
25<a href="/fr/logs.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
26<a href="/ja/logs.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
27<a href="/ko/logs.html" title="Korean">&nbsp;ko&nbsp;</a> |
28<a href="/tr/logs.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
29</div>
30<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
31            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
32
33    <p>ȿ�������� �������� ���Ϸ��� �߻��ϴ� ������ �Բ� ������
34    Ȱ���� ���ɿ� ���� �˾ƾ� �Ѵ�. ����ġ �������� �ſ� �������̰�
35    ������ �α� ����� �����Ѵ�. �� ������ �α� ����� �����ϴ�
36    ���� �α׿� �� ������ �����Ѵ�.</p>
37  </div>
38<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#security">���� ���</a></li>
39<li><img alt="" src="/images/down.gif" /> <a href="#errorlog">���� �α� (Error Log)</a></li>
40<li><img alt="" src="/images/down.gif" /> <a href="#accesslog">���� �α� (Access Log)</a></li>
41<li><img alt="" src="/images/down.gif" /> <a href="#rotation">�α� ��ȯ (Log Rotation)</a></li>
42<li><img alt="" src="/images/down.gif" /> <a href="#piped">�α׸� �������� ������</a></li>
43<li><img alt="" src="/images/down.gif" /> <a href="#virtualhost">����ȣ��Ʈ</a></li>
44<li><img alt="" src="/images/down.gif" /> <a href="#other">�ٸ� �α�����</a></li>
45</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
46<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
47<div class="section">
48<h2><a name="security" id="security">���� ���</a></h2>
49    
50
51    <p>���������� ����ġ�� �α������� �ִ� ���丮�� ���������
52    �ִٸ� (���� root) ������ �����ϴ� uid�� ���� Ȯ���� ����
53    �� �ִ�. �̸� ��������ʰ� �αװ� ����� ���丮�� ���������
54    ���� <em>����</em>. �ڼ��� ������ <a href="misc/security_tips.html">���� ��</a> ������ ����϶�.</p>
55
56    <p>��, Ŭ���̾�Ʈ�� ������ ������ �α����Ͽ� ���� �״��
57    ��ϵȴ�. �׷��� ���ǰ� �ִ� Ŭ���̾�Ʈ�� �α����Ͽ� ����ڸ�
58    ���� �� �����Ƿ�, �α׸� �ٷ궧�� �����ؾ� �Ѵ�.</p>
59  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
60<div class="section">
61<h2><a name="errorlog" id="errorlog">���� �α� (Error Log)</a></h2>
62    
63
64    <table class="related"><tr><th>��õ� ���</th><th>��õ� ���þ�</th></tr><tr><td /><td><ul><li><code class="directive"><a href="/mod/core.html#errorlog">ErrorLog</a></code></li><li><code class="directive"><a href="/mod/core.html#loglevel">LogLevel</a></code></li></ul></td></tr></table>
65
66    <p><code class="directive"><a href="/mod/core.html#errorlog">ErrorLog</a></code> ���þ��
67    ���� �߿��� �α������� ���� ���� �α��� �̸��� ��ġ�� �����Ѵ�.
68    ����ġ �������� �� ���Ͽ� ��������� ��û�� ó���ϴ� ����
69    �߻��� ���� ����Ѵ�. ������ �����ϰų� �����ϴµ� ������
70    �ִٸ� ������ �߸�Ǿ�� ������ ��� ��ġ������ �˷��ִ�
71    �̰��� ���� ���� ������� �Ѵ�.</p>
72
73    <p>���� �α״� ���� (���������� ���н� �ý��ۿ�����
74    <code>error_log</code>, ��������� OS/2������
75    <code>error.log</code>) ���Ͽ� ��ϵȴ�. ���н� �ý��ۿ���
76    ������ ���� <code>syslog</code>�� <a href="#piped">��������
77    ����Ͽ� �ٸ� ���α׷�</a>���� ���� ���� �ִ�.</p>
78
79    <p>���� �α��� ����� ��������� �����Ӱ� �ڼ��ϴ�. �׷���
80    ��κ��� ���� �α� �׸� ���������� ������ ������ �ִ�.
81    ���� ���, �׸��� ���� ������ ����.</p>
82
83    <div class="example"><p><code>
84      [Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1]
85      client denied by server configuration:
86      /export/home/live/ap/htdocs/test
87    </code></p></div>
88
89    <p>�α� �׸��� ù��° �׸��� ��¥�� �ð��̴�. �ι�°
90    �׸��� �����ϴ� ������ �ɰ����� ��Ÿ����. <code class="directive"><a href="/mod/core.html#loglevel">LogLevel</a></code> ���þ�� ���� �α׿�
91    ��ϵǴ� ������ �ɰ����� ������ �� �ִ�. ����° �׸���
92    ���� �߻��� Ŭ���̾�Ʈ�� IP �ּ��̴�. �� �������� ������
93    ������, �� ��� ������ Ŭ���̾�Ʈ�� ������ �ź��ϵ���
94    �����Ǿ�ٰ� �����ִ�. ��û�� ������ (�� ��ΰ� �ƴ�)
95    ���Ͻý��� ��ε� ���δ�.</p>
96
97    <p>���� �α׿��� �ſ� �پ��� ������ ������ ���� �� �ִ�.
98    ��κ��� ���� ����ϴ�. CGI ��ũ��Ʈ�� ����� ��µ� ����
99    �α׿� ��ϵȴ�. CGI ��ũ��Ʈ�� <code>stderr</code>�� ��
100    ������ �״�� ���� �α׷� ����ȴ�.</p>
101
102    <p>���� �α׿� ������ �߰��ϰ��� ���� �� ���. �׷���
103    ��û�� ���� ���� �α��� ��� <a href="#accesslog">����
104    �α�</a>���� �����ϴ� �׸��� ����. ���� ���, ���� ���
105    �����ڵ尡 403�� ���� �α� �׸��� ����. ���� �α״�
106    ����������� �� �����Ƿ� �� ������ ����Ͽ� ���� ��Ȳ��
107    ���� �߰������� ���� �� �ִ�.</p>
108
109    <p>�˻��Ҷ� � ������ ������ ���� �α׸� ��� ���캸��
110    ���� ����. ���н� �ý��ۿ��� ������ ���� �Ѵ�:</p>
111
112    <div class="example"><p><code>
113      tail -f error_log
114    </code></p></div>
115  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
116<div class="section">
117<h2><a name="accesslog" id="accesslog">���� �α� (Access Log)</a></h2>
118    
119
120    <table class="related"><tr><th>��õ� ���</th><th>��õ� ���þ�</th></tr><tr><td><ul><li><code class="module"><a href="/mod/mod_log_config.html">mod_log_config</a></code></li><li><code class="module"><a href="/mod/mod_setenvif.html">mod_setenvif</a></code></li></ul></td><td><ul><li><code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code></li><li><code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code></li><li><code class="directive"><a href="/mod/mod_setenvif.html#setenvif">SetEnvIf</a></code></li></ul></td></tr></table>
121
122    <p>���� ���� �α״� ������ ó���ϴ� ��� ��û�� ����Ѵ�.
123    <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code>
124    ���þ�� ���� �α��� ��ġ�� ������ �����Ѵ�. <code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code> ���þ
125    ����Ͽ� �α׿� ������ ������ ���� ������ �� �ִ�. �� ����
126    ������ ���� �α׿� �� ������ �����ϴ� ����� �����Ѵ�.</p>
127
128    <p>���� ���� �α׿� ������ ����ϴ� ���� �α� ���� ������
129    ���̴�. ���� �ܰ�� �� ������ �м��Ͽ� ������ ��踦 �����
130    ���̴�. �� ������ �Ϲ����� �α� �м��� ���ؼ� �ٷ��� ������,
131    �α� �м��� ���� �������� �� ���� �ƴϴ�. �α� �м��� ����
132    ������ �α׸� �м��ϴ� ����Ʈ��� ���ؼ��� <a href="http://dmoz.org/Computers/Software/Internet/Site_Management/Log_analysis/">Open Directory</a>��
133    <a href="http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/Log_Analysis_Tools/">Yahoo</a>��
134    ����϶�.</p>
135
136    <p>����ġ �������� ������� mod_log_referer, mod_log_agent,
137    <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code>
138    ���� ���� ���þ ����Ͽ� ���� �α׸� �ٷ���. ������
139    <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code>
140    ���þ ������ ���þ���� ��� ����� �̾�޾Ҵ�.</p>
141
142    <p>���� �α��� ����� �ſ� ��������� �����ϴ�. ����� C��
143    printf(1) ��Ĺ��ڿ��� �ſ� ������ ��Ĺ��ڿ��� ����Ͽ�
144    �����Ѵ�. ���� �� ���� ����. ��Ĺ��ڿ��� ��밡����
145    ��� ������ �˷��� <code class="module"><a href="/mod/mod_log_config.html">mod_log_config</a></code> <a href="mod/mod_log_config.html#formats">��Ĺ��ڿ�</a>��
146    ����϶�.</p>
147
148    <h3><a name="common" id="common">Common �α� ���</a></h3>
149      
150
151      <p>���� ��� �������� ������ ������ ����.</p>
152
153      <div class="example"><p><code>
154        LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
155         CustomLog logs/access_log common
156      </code></p></div>
157
158      <p>�׷��� ������ �α� ��Ĺ��ڿ��� <em>����</em>
159      <code>common</code>���� �����Ѵ�. ��Ĺ��ڿ��� �ۼ�Ʈ
160      ���þ��� �����Ǹ�, ������ � ������ ������� �˸���.
161      ��Ĺ��ڿ��� �Ϲ� ���ڸ� ������ �״�� �α׿� ��µȴ�.
162      ���ǥ ����(<code>"</code>)�� ����ϰ� �ʹٸ� �齽������
163      �տ� �ٿ��� ��Ĺ��ڿ��� ���� �ƴ��� ǥ���Ѵ�. ��Ĺ��ڿ���
164      �ٹٲ� "<code>\n</code>", �� "<code>\t</code>"�� ����
165      Ư�� �����ڸ� ����� �� �ִ�.</p>
166
167      <p><code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code>
168      ���þ�� ������ <em>����</em>�� ����ϴ� ���ο� �α�������
169      �����. ���� �α��� ���ϸ��� �������� ��������������
170      <code class="directive"><a href="/mod/core.html#serverroot">ServerRoot</a></code>�� ������̴�.</p>
171
172      <p>���� ������ ����α����(Common Log Format, CLF)�̶��
173      ������� �α� �׸��� ����Ѵ�. ���� �ٸ� �������鵵 �̷�
174      ǥ�� ������� �α׸� �����, ���� �α� �м� ���α׷�����
175      ���� �� �ִ�.  CLF�� ���� �α����� �׸��� ������ ����:</p>
176
177      <div class="example"><p><code>
178        127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET
179        /apache_pb.gif HTTP/1.0" 200 2326
180      </code></p></div>
181
182      <p>���� �α� �׸��� �� �κ��� �����Ѵ�.</p>
183
184      <dl>
185        <dt><code>127.0.0.1</code> (<code>%h</code>)</dt>
186
187        <dd>������ ��û�� �� Ŭ���̾�Ʈ(��� ȣ��Ʈ)�� IP
188        �ּ��̴�. <code class="directive"><a href="/mod/core.html#hostnamelookups">HostnameLookups</a></code>��
189        <code>On</code>�̶�� ȣ��Ʈ���� ã�Ƽ� IP �ּ� �ڸ���
190        ��� ����. �׷��� �� ������ ������ �ſ� ������ �� ��
191        �����Ƿ� ��õ���� �ʴ´�. ȣ��Ʈ���� �˷��� ��� ���߿�
192        <a href="programs/logresolve.html">logresolve</a>��
193        ���� �α׸� ó���ϴ� ���α׷��� ����ϴ� ���� ����.
194        ���⿡ ���� IP �ּҴ� ����ڰ� ����ϴ� ��ǻ�� �ּҰ�
195        �ƴ� �� �ִ�. ���Ͻ� ������ ����ڿ� �������̿� �����Ѵٸ�,
196        �� ��ǻ�� �ּҰ� �ƴ϶� ���Ͻ��� �ּҰ� ��ϵ� ���̴�.</dd>
197
198        <dt><code>-</code> (<code>%l</code>)</dt>
199
200        <dd>��¿��� "�����ȣ"�� ��û�� ������ ������ ��Ÿ����.
201        �� ��� ���⿡ ���� ������ Ŭ���̾�Ʈ ��ǻ����
202        <code>identd</code>�� ������ Ŭ���̾�Ʈ�� RFC 1413
203        �ſ��̴�. �� ������ �ſ� ���� �� ��⶧����, �����
204        ��Ǵ� ���� ��Ʈ���� �ƴ϶�� ���� �� ������ ����ϸ�
205        �ȵȴ�. <code class="directive"><a href="/mod/core.html#identitycheck">IdentityCheck</a></code>��
206        <code>On</code>�� �ƴ϶�� ����ġ �������� �� ������
207        �˾ƺ����� �õ������� �ʴ´�.</dd>
208
209        <dt><code>frank</code> (<code>%u</code>)</dt>
210
211        <dd>�̴� HTTP �������� �˾Ƴ� ������ ��û�� �������
212        userid�̴�. ���� �� ���� CGI ��ũ��Ʈ����
213        <code>REMOTE_USER</code> ȯ�溯���� �Ѱ����. ��û��
214        �����ڵ尡 401�̶�� (�Ʒ� ���) ����ڰ� ���� ������
215        ��ġ�� �ʾ����Ƿ� �� ���� ������ �ȵȴ�. ������ ��ȣ��
216        ��ȣ���� �ʴ´ٸ� �� �׸��� ���� �׸�� ����
217        "<code>-</code>"�̴�.</dd>
218
219        <dt><code>[10/Oct/2000:13:55:36 -0700]</code>
220        (<code>%t</code>)</dt>
221
222        <dd>
223          ������ ��ûó���� ��ģ �ð�.
224          �����:
225
226          <p class="indent">
227            <code>[day/month/year:hour:minute:second zone]<br />
228             day = ���� 2��<br />
229             month = ���� 3��<br />
230             year = ���� 4��<br />
231             hour = ���� 2��<br />
232             minute = ���� 2��<br />
233             second = ���� 2��<br />
234             zone = (`+' | `-') ���� 4��</code>
235          </p>
236          �α� ��Ĺ��ڿ��� <code>%{format}t</code>�� ����Ͽ�
237          �ٸ� ������� �ð��� ����� �� �ִ�. <code>format</code>��
238          C ǥ�� ���̺귯���� <code>strftime(3)</code>�� ����.
239        </dd>
240
241        <dt><code>"GET /apache_pb.gif HTTP/1.0"</code>
242        (<code>\"%r\"</code>)</dt>
243
244        <dd>Ŭ���̾�Ʈ�� ��û���� �ֵ��ǥ�� �����ִ�. ��û����
245        �ſ� ������ ������ ��� �ִ�. ù°, Ŭ���̾�Ʈ�� �����
246        �޽��� <code>GET</code>�̴�. ��°, Ŭ���̾�Ʈ�� �ڿ�
247        <code>/apache_pb.gif</code>�� ��û�Ѵ�. ����°, Ŭ���̾�Ʈ��
248        <code>HTTP/1.0</code> ���������� ����Ѵ�. ��û����
249        ���� �κ��� ��� �α��� ���� �ִ�. ���� ���, ��Ĺ��ڿ�
250        "<code>%m %U%q %H</code>"�� "<code>%r</code>"�� �Ȱ���
251        �޽��, ���, ���ǹ��ڿ�, ���������� �α��Ѵ�.</dd>
252
253        <dt><code>200</code> (<code>%&gt;s</code>)</dt>
254
255        <dd>�̴� ������ Ŭ���̾�Ʈ���� ������ �����ڵ��̴�. ��
256        ������ (2�� �����ϴ� �ڵ�) ��û�� �����Ͽ�����, (4��
257        �����ϴ� �ڵ�) Ŭ���̾�Ʈ�� ���� �ִ���, (5�� �����ϴ�
258        �ڵ�) ������ ���� �ִ��� �˷��ֹǷ� �ſ� �߿��ϴ�.
259        �����ڵ��� ��ü ����� <a href="http://www.w3.org/Protocols/rfc2616/rfc2616.txt">HTTP
260        �Ծ�</a> (RFC2616 section 10)���� ã�� �� �ִ�.</dd>
261
262        <dt><code>2326</code> (<code>%b</code>)</dt>
263
264        <dd>������ �׸��� ���� ����� �����ϰ� Ŭ���̾�Ʈ����
265        ������ ������ ũ�⸦ ��Ÿ����. Ŭ���̾�Ʈ���� ������
266        ������ ��ٸ� �� ���� "<code>-</code>"�̴�. ������
267        ��� ��� "<code>0</code>"�� �α��Ϸ��� ���
268        <code>%B</code>�� ����Ѵ�.</dd>
269      </dl>
270    
271
272    <h3><a name="combined" id="combined">Combined �α� ���</a></h3>
273      
274
275      <p>���� ���Ǵ� �ٸ� ��Ĺ��ڿ��� ���յȷα����(Combined
276      Log Format)�̴�. ������ ���� ����Ѵ�.</p>
277
278      <div class="example"><p><code>
279        LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
280        \"%{User-agent}i\"" combined<br />
281         CustomLog log/access_log combined
282      </code></p></div>
283
284      <p>�� ����� �� �׸��� �� �߰��� ���� �����ϰ�� Common
285      �α� ��İ� ������ ����. �߰��� �׸���� �ۼ�Ʈ ���þ�
286      <code>%{<em>header</em>}i</code>�� ����Ѵ�. ���⼭
287      <em>header</em> �ڸ���  HTTP ��û ��� �̸��� ���� ��
288      �ִ�. �� ����� ���� �α״� ������ ����:</p>
289
290      <div class="example"><p><code>
291        127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET
292        /apache_pb.gif HTTP/1.0" 200 2326
293        "http://www.example.com/start.html" "Mozilla/4.08 [en]
294        (Win98; I ;Nav)"
295      </code></p></div>
296
297      <p>�߰��� �׸���:</p>
298
299      <dl>
300        <dt><code>"http://www.example.com/start.html"</code>
301        (<code>\"%{Referer}i\"</code>)</dt>
302
303        <dd>"Referer" (����� Ʋ�����ʾ���) HTTP ��û ���.
304        Ŭ���̾�Ʈ�� �����ߴٰ� �������� �˸� ����Ʈ�̴�.
305        (��, <code>/apache_pb.gif</code>�� ��ũ�Ͽ��ų� ������
306        ����Ʈ�̴�.)</dd>
307
308        <dt><code>"Mozilla/4.08 [en] (Win98; I ;Nav)"</code>
309        (<code>\"%{User-agent}i\"</code>)</dt>
310
311        <dd>User-Agent HTTP ��û ���. Ŭ���̾�Ʈ ������
312        �ڽſ� ���� �˸��� �ĺ������̴�.</dd>
313      </dl>
314    
315
316    <h3><a name="multiple" id="multiple">���� ���� �α�</a></h3>
317      
318
319      <p>�������Ͽ� ���� <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ
320      ����ϸ� ���� �αװ� ������ ��������. ���� ���, ����
321      ������ ������ ���� �α׸� �����. ù��°�� �⺻ CLF ������
322      ����ϰ�, �ι�°�� ����°�� referer�� ������ ������
323      ����Ѵ�. ������ �� <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code> ���� ���
324      ���� <code>ReferLog</code>�� <code>AgentLog</code> ���þ���
325      ����� �䳻�� �� �ִ��� �����ش�.</p>
326
327      <div class="example"><p><code>
328        LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
329        CustomLog logs/access_log common<br />
330        CustomLog logs/referer_log "%{Referer}i -&gt; %U"<br />
331        CustomLog logs/agent_log "%{User-agent}i"
332      </code></p></div>
333
334      <p>��, �� ���� <code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code>���� �ݵ��
335      ������ ������ �ʿ�� ������ �����ش�. ��� <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ
336      ���� �α� ����� ������ �� �ִ�.</p>
337    
338
339    <h3><a name="conditional" id="conditional">���Ǻ� �α�</a></h3>
340      
341
342      <p>Ŭ���̾�Ʈ ��û�� ���ݿ� ��� �ش� �׸��� ���� �α׿�
343      ��������ʰ� ���� ���� �ִ�. <a href="env.html">ȯ�溯��</a>��
344      ����ϸ� ���� �ذ�ȴ�. ����, Ŭ���̾�Ʈ�� Ư�� ������
345      �����ϸ� ȯ�溯���� �����Ѵ�. �� �۾����� ���� <code class="directive"><a href="/mod/mod_setenvif.html#setenvif">SetEnvIf</a></code>�� ����Ѵ�.
346      �׸��� <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code>
347      ���þ <code>env=</code>�� ����Ͽ� ȯ�溯�� ������
348      ��� ��û�� ���ְų� ����. ���� ���:</p>
349
350      <div class="example"><p><code>
351        # loop-back �������̽����� ��û�� ǥ���Ѵ�<br />
352        SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog<br />
353        # robots.txt ���Ͽ� ���� ��û�� ǥ���Ѵ�<br />
354        SetEnvIf Request_URI "^/robots\.txt$" dontlog<br />
355        # �������� �α׿� �����<br />
356        CustomLog logs/access_log common env=!dontlog
357      </code></p></div>
358
359      <p>�ٸ� ���� ����� ������� ��û���� �� �α����Ͽ� ����ϰ�,
360      ����� ������� ��û�� �ٸ� �α����Ͽ� ����ϴ� ��츦
361      ���غ���.</p>
362
363      <div class="example"><p><code>
364        SetEnvIf Accept-Language "en" english<br />
365        CustomLog logs/english_log common env=english<br />
366        CustomLog logs/non_english_log common env=!english
367      </code></p></div>
368
369      <p>���Ǻ� �α״� �ſ� �����ϰ� ����������, �̰��� �α�
370      ������ �����ϴ� ������ ����� �ƴϴ�. �α������� ������
371      ��� �ൿ�� ����Ҷ� �� �����ϴ�. ���߿� �������ʴ� ��û��
372      �����ϰ� �α������� �м��ϴ� ���� �� ����.</p>
373    
374  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
375<div class="section">
376<h2><a name="rotation" id="rotation">�α� ��ȯ (Log Rotation)</a></h2>
377    
378
379    <p>���� �ٻ� ���������� �α����Ͽ� ����Ǵ� �������� �ſ�
380    ����. ���� �α״� ���� ���� ��û�� 1MB �̻� �����Ѵ�. ���������
381    ������ �α׸� �ű�ų� ����� ������� �α׸� �ֱ�������
382    ��Ȱ�� �ʿ䰡 �ִ�. ����ġ�� ������ �����ִ� ���ȿ��� ���
383    ���� �α����Ͽ� ���⶧���� ������ �������϶� �α׸� ��ȯ��
384    �� ���. ��� �α������� �ű�ų� ������ ������ <a href="stopping.html">�����</a>�Ͽ�, �α������� ���� �����
385    �Ѵ�.</p>
386
387    <p><em>������</em> ������� ����ϸ� ������ Ŭ���̾�Ʈ��
388    ������ Ȥ�� ���� ������ �����ʰ� �� �α������� �� �� �ִ�.
389    �׷��� �̸� ���� ������ ������ ��û�� ������ ������ ����
390    ���� �α������� ��� ����ؾ� �Ѵ�. �׷��Ƿ� ���������
391    �α������� ó���ϱ� �� ���� ��ٸ� �ʿ䰡 �ִ�. �Ϲ�������
392    ������ ���� �α׸� ��ȯ�ϰ�, ��ũ���� ����ϱ����� ����
393    �α׸� �����Ѵ�:</p>
394
395    <div class="example"><p><code>
396      mv access_log access_log.old<br />
397      mv error_log error_log.old<br />
398      apachectl graceful<br />
399      sleep 600<br />
400      gzip access_log.old error_log.old
401    </code></p></div>
402
403    <p>�α׸� ��ȯ�ϴ� �ٸ� ����� ���� �� ������ <a href="#piped">������ �α�</a>�� ����ϴ� ���̴�.</p>
404  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
405<div class="section">
406<h2><a name="piped" id="piped">�α׸� �������� ������</a></h2>
407    
408
409    <p>����ġ �������� ���� �α׿� ���� �α׸� ���Ͽ� ����
410    �����ʰ� �������� ���� �ٸ� ���μ����� ���� �� �ִ�. ��
411    ����� ����ϸ� ������ �ڵ带 �߰������ʰ� �ſ� �����ϰ�
412    �α׸� ó���� �� �ִ�. �α׸� �������� �������� ���ϸ�
413    �ڸ��� ���������� "<code>|</code>"�� �ڿ� ǥ���Է�����
414    �α� �׸��� ���� �������ϸ��� ������ �ȴ�. ����ġ�� ������
415    �����Ҷ� �������� ������ �α� ���μ����� �����ϰ�, ������
416    ����Ǵ� ���� ���μ����� ������ �ٽ� �����Ѵ�. (�� ������
417    ��ɶ����� �츮�� �� ����� "���� �� �ִ� ������ �α�"���
418    ���.)</p>
419
420    <p>�������� ����� �α� ���μ����� �θ� ����ġ httpd ���μ�����
421    ����, ���μ����� userid�� ����. ��, �������� ����� �α�
422    ���α׷��� ���� root�� ����ȴ�. �׷��Ƿ� ���α׷��� �����ϰ�
423    �����ϰ� ����� ���� �ſ� �߿��ϴ�.</p>
424
425    <p>�������� �θ��� ��ü ��ɾ ���ǥ�� ������ ����϶�.
426    �� ���� ���� �α׿� ���� ��������, ���� �α׵� ��������.</p>
427
428    <p>������ ����������ʰ� �α׸� ��ȯ�� �� �ִ� ���� ������
429    �α׸� ����ϴ� �߿��� ������. ����ġ �������� �̸� ����
430    <a href="programs/rotatelogs.html">rotatelogs</a>��� ������
431    ���α׷��� �����Ѵ�. ���� ��� 24�ð����� �α׸� ��ȯ�Ѵٸ�:</p>
432
433    <div class="example"><p><code>
434      CustomLog "|/usr/local/apache/bin/rotatelogs
435      /var/log/access_log 86400" common
436    </code></p></div>
437
438    <p>�ٸ� ����Ʈ�� <a href="http://www.cronolog.org/">cronolog</a>��� ���������
439    �ξ� �� ������ �α� ��ȯ ���α׷��� �ִ�.</p>
440
441    <p>���Ǻ� �α׿� ���� ������ �α״� �ſ� ������ ��������,
442    ���߿� ó���ϴ� ���� �� ������ ����� ������ ��� ����ؼ���
443    �ȵȴ�.</p>
444  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
445<div class="section">
446<h2><a name="virtualhost" id="virtualhost">����ȣ��Ʈ</a></h2>
447    
448
449    <p>���� <a href="vhosts/">����ȣ��Ʈ</a>�� �ִ� ������
450    ��Ҷ� �������� ������� �α������� �ٷ� �� �ִ�. ����,
451    ȣ��Ʈ�� �Ѱ��� ������ ���� �α׸� ����� �� �ִ�. <code class="directive"><a href="/mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code> ������
452    �ƴ� �ּ��� ������ �α� ���þ �θ� ��� ��û�� ���� ����
453    �α׿� ���� �α׷� ��ϵȴ�. �� ����� ����ȣ��Ʈ���� ����
454    ����� �� �� ���.</p>
455
456    <p><code class="directive"><a href="/mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code>
457    ���� �ȿ� <code class="directive"><a href="/mod/mod_log_config.html#customlog">CustomLog</a></code>��
458    <code class="directive"><a href="/mod/core.html#errorlog">ErrorLog</a></code> ���þ
459    ����ϸ� �ش� ����ȣ��Ʈ�� ���� ��û�� ������ ������
460    ���Ͽ� ��ϵȴ�. �α� ���þ ��� �ٸ� ����ȣ��Ʈ�� ���
461    �ּ��� �α׿� �α׸� ����Ѵ�. �� ����� ����ȣ��Ʈ ������
462    ���� ��� �ſ� ����������, ȣ��Ʈ ���� ���ٸ� ���ϱ�
463    �������. ��, <a href="vhosts/fd-limits.html">���ϱ���ڰ�
464    ������</a> ������ ���� �߻��Ѵ�.</p>
465
466    <p>���� �α��� ��� �ſ� ���� �ذ�å�� �ִ�. �α� ��Ĺ��ڿ���
467    ����ȣ��Ʈ�� ���� ������ �߰��ϸ� ��� ȣ��Ʈ�� ���� �α׸�
468    ����ϰ�, ���߿� �α׸� ����ȣ��Ʈ���� ���� �� �ִ�. ����
469    ���, ���� ���þ ����.</p>
470
471    <div class="example"><p><code>
472      LogFormat "%v %l %u %t \"%r\" %&gt;s %b"
473      comonvhost<br />
474      CustomLog logs/access_log comonvhost
475    </code></p></div>
476
477    <p><code>%v</code>�� ��û�� �����ϴ� ����ȣ��Ʈ �̸���
478    ����Ѵ�. ���߿� <a href="programs/other.html">split-logfile</a>
479    ���� ���α׷����� ���� �α׸� ����ȣ������ ���� �� �ִ�.</p>
480  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
481<div class="section">
482<h2><a name="other" id="other">�ٸ� �α�����</a></h2>
483    
484
485    <table class="related"><tr><th>��õ� ���</th><th>��õ� ���þ�</th></tr><tr><td><ul><li><code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="/mod/mod_rewrite.html">mod_rewrite</a></code></li></ul></td><td><ul><li><code class="directive"><a href="/mod/mpm_common.html#pidfile">PidFile</a></code></li><li><code class="directive"><a href="/mod/mod_rewrite.html#rewritelog">RewriteLog</a></code></li><li><code class="directive"><a href="/mod/mod_rewrite.html#rewriteloglevel">RewriteLogLevel</a></code></li><li><code class="directive"><a href="/mod/mod_cgi.html#scriptlog">ScriptLog</a></code></li><li><code class="directive"><a href="/mod/mod_cgi.html#scriptlogbuffer">ScriptLogBuffer</a></code></li><li><code class="directive"><a href="/mod/mod_cgi.html#scriptloglength">ScriptLogLength</a></code></li></ul></td></tr></table>
486
487    <h3><a name="pidfile" id="pidfile">PID ����</a></h3>
488      
489
490      <p>����ġ �������� �����Ҷ� <code>logs/httpd.pid</code>
491      ���Ͽ� �θ� httpd ���μ����� process id�� �����Ѵ�. ��
492      ���ϸ��� <code class="directive"><a href="/mod/mpm_common.html#pidfile">PidFile</a></code>
493      ���þ�� ������ �� �ִ�. process-id�� ���ڰ� �θ� ���μ�����
494      �ñ׳��� ���� ������ ������ϰų� ���϶� ����Ѵ�.
495      ����������� ��� -k �����ɼ��� ����Ѵ�. �� �ڼ���
496      ������ <a href="stopping.html">�ߴܰ� �����</a> ��������
497      ����϶�.</p>
498    
499
500    <h3><a name="scriptlog" id="scriptlog">��ũ��Ʈ �α�</a></h3>
501      
502
503      <p>������� �������� <code class="directive"><a href="/mod/mod_cgi.html#scriptlog">ScriptLog</a></code> ���þ ����Ͽ�
504      CGI ��ũ��Ʈ�� �Է°� ����� ����� �� �ִ�. �� ���þ��
505      ���� �׽�Ʈ�����θ� ����ؾ� �Ѵ�. ���� ����ϴ� ��������
506      ����ϸ� �ȵȴ�. �� �ڼ��� ������ <a href="mod/mod_cgi.html">mod_cgi</a> ������ ����϶�.</p>
507    
508
509    <h3><a name="rewritelog" id="rewritelog">���ۼ� �α�</a></h3>
510      
511
512      <p><a href="mod/mod_rewrite.html">mod_rewrite</a>�� �����ϰ�
513      ������ ����� ����Ѵٸ� ������� ���� ���� �׻� <code class="directive"><a href="/mod/mod_rewrite.html#rewritelog">RewriteLog</a></code>�� ����� �ʿ䰡
514      �ִ�. �� �α������� ���ۼ� ������ ��� ��û�� ��ȯ�ϴ�����
515      ���� �ڼ��� �˷��ش�. �ڼ��� ������ <code class="directive"><a href="/mod/mod_rewrite.html#rewriteloglevel">RewriteLogLevel</a></code> ���þ��
516      �����Ѵ�.</p>
517    
518  </div></div>
519<div class="bottomlang">
520<p><span>������ ���: </span><a href="/en/logs.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
521<a href="/fr/logs.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
522<a href="/ja/logs.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
523<a href="/ko/logs.html" title="Korean">&nbsp;ko&nbsp;</a> |
524<a href="/tr/logs.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
525</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
526<script type="text/javascript"><!--//--><![CDATA[//><!--
527var comments_shortname = 'httpd';
528var comments_identifier = 'http://httpd.apache.org/docs/2.4/logs.html';
529(function(w, d) {
530    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
531        d.write('<div id="comments_thread"><\/div>');
532        var s = d.createElement('script');
533        s.type = 'text/javascript';
534        s.async = true;
535        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
536        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
537    }
538    else { 
539        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
540    }
541})(window, document);
542//--><!]]></script></div><div id="footer">
543<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
544<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
545if (typeof(prettyPrint) !== 'undefined') {
546    prettyPrint();
547}
548//--><!]]></script>
549</body></html>