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