1 <?xml version="1.0" encoding="EUC-KR" ?>
2 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
4 <!-- English Revision: 105989:1174747 (outdated) -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <manualpage metafile="logs.xml.meta">
25 <title>·Î±×ÆÄÀÏ</title>
28 <p>È¿À²ÀûÀ¸·Î À¥¼¹ö¸¦ °ü¸®ÇÏ·Á¸é ¹ß»ýÇÏ´Â ¹®Á¦¿Í ÇÔ²² ¼¹öÀÇ
29 È°µ¿°ú ¼º´É¿¡ ´ëÇØ ¾Ë¾Æ¾ß ÇÑ´Ù. ¾ÆÆÄÄ¡ À¥¼¹ö´Â ¸Å¿ì Á¾ÇÕÀûÀÌ°í
30 À¯¿¬ÇÑ ·Î±× ±â´ÉÀ» Á¦°øÇÑ´Ù. ÀÌ ¹®¼´Â ·Î±× ±â´ÉÀ» ¼³Á¤ÇÏ´Â
31 ¹æ¹ý°ú ·Î±×¿¡ µé¾î°¥ ³»¿ëÀ» ¼³¸íÇÑ´Ù.</p>
34 <section id="security">
35 <title>º¸¾È °æ°í</title>
37 <p>´©±º°¡¿¡°Ô ¾ÆÆÄÄ¡ÀÇ ·Î±×ÆÄÀÏÀÌ ÀÖ´Â µð·ºÅ丮¿¡ ¾²±â±ÇÇÑÀÌ
38 ÀÖ´Ù¸é (º¸Åë root) ¼¹ö¸¦ ½ÇÇàÇÏ´Â uid¸¦ °ÅÀÇ È®½ÇÈ÷ ¾òÀ»
39 ¼ö ÀÖ´Ù. À̸¦ °í·ÁÇÏÁö¾Ê°í ·Î±×°¡ ÀúÀåµÈ µð·ºÅ丮¿¡ ¾²±â±ÇÇÑÀ»
40 ÁÖÁö <em>¸¶¶ó</em>. ÀÚ¼¼ÇÑ ³»¿ëÀº <a
41 href="misc/security_tips.html">º¸¾È ÆÁ</a> ¹®¼¸¦ Âü°íÇ϶ó.</p>
43 <p>¶Ç, Ŭ¶óÀ̾ðÆ®°¡ Á¦°øÇÑ Á¤º¸´Â ·Î±×ÆÄÀÏ¿¡ °ÅÀÇ ±×´ë·Î
44 ±â·ÏµÈ´Ù. ±×·¡¼ ¾ÇÀÇ°¡ Àִ Ŭ¶óÀ̾ðÆ®°¡ ·Î±×ÆÄÀÏ¿¡ Á¦¾î¹®ÀÚ¸¦
45 ³ÖÀ» ¼ö ÀÖÀ¸¹Ç·Î, ·Î±×¸¦ ´Ù·ê¶§´Â ÁÖÀÇÇØ¾ß ÇÑ´Ù.</p>
48 <section id="errorlog">
49 <title>¿À·ù ·Î±× (Error Log)</title>
53 <directive module="core">ErrorLog</directive>
54 <directive module="core">LogLevel</directive>
58 <p><directive module="core">ErrorLog</directive> Áö½Ã¾î´Â
59 °¡Àå Áß¿äÇÑ ·Î±×ÆÄÀÏÀÎ ¼¹ö ¿À·ù ·Î±×ÀÇ À̸§°ú À§Ä¡¸¦ ÁöÁ¤ÇÑ´Ù.
60 ¾ÆÆÄÄ¡ À¥¼¹ö´Â ÀÌ ÆÄÀÏ¿¡ Áø´ÜÁ¤º¸¿Í ¿äûÀ» ó¸®ÇÏ´Â µµÁß
61 ¹ß»ýÇÑ ¿À·ù¸¦ ±â·ÏÇÑ´Ù. ¼¹ö°¡ ½ÃÀÛÇϰųª µ¿ÀÛÇϴµ¥ ¹®Á¦°¡
62 ÀÖ´Ù¸é ¹«¾ùÀÌ À߸øµÇ¾ú°í ¶§¶§·Î ¾î¶»°Ô °íÄ¡´ÂÁö¸¦ ¾Ë·ÁÁÖ´Â
63 ÀÌ°÷À» °¡Àå ¸ÕÀú »ìÆìºÁ¾ß ÇÑ´Ù.</p>
65 <p>¿À·ù ·Î±×´Â º¸Åë (ÀüÇüÀûÀ¸·Î À¯´Ð½º ½Ã½ºÅÛ¿¡¼´Â
66 <code>error_log</code>, À©µµ¿ìÁî¿Í OS/2¿¡¼´Â
67 <code>error.log</code>) ÆÄÀÏ¿¡ ±â·ÏµÈ´Ù. À¯´Ð½º ½Ã½ºÅÛ¿¡¼
68 ¼¹ö´Â ¿À·ù¸¦ <code>syslog</code>³ª <a href="#piped">ÆÄÀÌÇÁ¸¦
69 »ç¿ëÇÏ¿© ´Ù¸¥ ÇÁ·Î±×·¥</a>À¸·Î º¸³¾ ¼öµµ ÀÖ´Ù.</p>
71 <p>¿À·ù ·Î±×ÀÇ Çü½ÄÀº »ó´ëÀûÀ¸·Î ÀÚÀ¯·Ó°í ÀÚ¼¼ÇÏ´Ù. ±×·¯³ª
72 ´ëºÎºÐÀÇ ¿À·ù ·Î±× Ç׸ñ¿¡ °øÅëÀûÀ¸·Î ³ª¿À´Â Á¤º¸°¡ ÀÖ´Ù.
73 ¿¹¸¦ µé¾î, Ç׸ñÀº º¸Åë ´ÙÀ½°ú °°´Ù.</p>
76 [Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1]
77 client denied by server configuration:
78 /export/home/live/ap/htdocs/test
81 <p>·Î±× Ç׸ñ¿¡¼ ù¹ø° Ç׸ñÀº ³¯Â¥¿Í ½Ã°£ÀÌ´Ù. µÎ¹ø°
82 Ç׸ñÀº º¸°íÇÏ´Â ¿À·ùÀÇ ½É°¢¼ºÀ» ³ªÅ¸³½´Ù. <directive
83 module="core">LogLevel</directive> Áö½Ã¾î·Î ¿À·ù ·Î±×¿¡
84 ±â·ÏµÇ´Â ¿À·ùÀÇ ½É°¢¼ºÀ» Á¦ÇÑÇÒ ¼ö ÀÖ´Ù. ¼¼¹ø° Ç׸ñÀº
85 ¿À·ù¸¦ ¹ß»ýÇÑ Å¬¶óÀ̾ðÆ®ÀÇ IP ÁÖ¼ÒÀÌ´Ù. ÀÌ ´ÙÀ½ºÎÅÍ ¿À·ù¹®ÀÌ
86 ³ª¿À¸ç, ÀÌ °æ¿ì ¼¹ö°¡ Ŭ¶óÀ̾ðÆ®ÀÇ Á¢±ÙÀ» °ÅºÎÇϵµ·Ï
87 ¼³Á¤µÇ¾ú´Ù°í ³ª¿ÍÀÖ´Ù. ¿äûÇÑ ¹®¼ÀÇ (À¥ °æ·Î°¡ ¾Æ´Ñ)
88 ÆÄÀϽýºÅÛ °æ·Îµµ º¸ÀδÙ.</p>
90 <p>¿À·ù ·Î±×¿¡´Â ¸Å¿ì ´Ù¾çÇÑ Á¾·ùÀÇ ¹®±¸°¡ ³ª¿Ã ¼ö ÀÖ´Ù.
91 ´ëºÎºÐÀº À§¿Í ºñ½ÁÇÏ´Ù. CGI ½ºÅ©¸³Æ®ÀÇ µð¹ö±ë Ãâ·Âµµ ¿À·ù
92 ·Î±×¿¡ ±â·ÏµÈ´Ù. CGI ½ºÅ©¸³Æ®°¡ <code>stderr</code>¿¡ ¾´
93 Á¤º¸´Â ±×´ë·Î ¿À·ù ·Î±×·Î º¹»çµÈ´Ù.</p>
95 <p>¿À·ù ·Î±×¿¡ Á¤º¸¸¦ Ãß°¡ÇÏ°¡³ª »ý·«ÇÒ ¼ö ¾ø´Ù. ±×·¯³ª
96 ¿äû¿¡ ´ëÇÑ ¿À·ù ·Î±×ÀÇ °æ¿ì <a href="#accesslog">Á¢±Ù
97 ·Î±×</a>¿¡µµ ´ëÀÀÇÏ´Â Ç׸ñÀÌ »ý±ä´Ù. ¿¹¸¦ µé¾î, À§ÀÇ °æ¿ì
98 »óÅÂÄڵ尡 403ÀÎ Á¢±Ù ·Î±× Ç׸ñÀÌ »ý±ä´Ù. Á¢±Ù ·Î±×´Â
99 »ç¿ëÀÚÁ¤ÀÇÇÒ ¼ö ÀÖÀ¸¹Ç·Î ÀÌ ÆÄÀÏÀ» Âü°íÇÏ¿© ¿À·ù »óȲ¿¡
100 ´ëÇÑ Ãß°¡Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖ´Ù.</p>
102 <p>°Ë»çÇÒ¶§ ¾î¶² ¹®Á¦°¡ »ý±â´ÂÁö ¿À·ù ·Î±×¸¦ °è¼Ó »ìÆ캸´Â
103 °ÍÀÌ ÁÁ´Ù. À¯´Ð½º ½Ã½ºÅÛ¿¡¼ ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù:</p>
110 <section id="accesslog">
111 <title>Á¢±Ù ·Î±× (Access Log)</title>
115 <module>mod_log_config</module>
116 <module>mod_setenvif</module>
119 <directive module="mod_log_config">CustomLog</directive>
120 <directive module="mod_log_config">LogFormat</directive>
121 <directive module="mod_setenvif">SetEnvIf</directive>
125 <p>¼¹ö Á¢±Ù ·Î±×´Â ¼¹ö°¡ ó¸®ÇÏ´Â ¸ðµç ¿äûÀ» ±â·ÏÇÑ´Ù.
126 <directive module="mod_log_config">CustomLog</directive>
127 Áö½Ã¾î´Â Á¢±Ù ·Î±×ÀÇ À§Ä¡¿Í ³»¿ëÀ» ÁöÁ¤ÇÑ´Ù. <directive
128 module="mod_log_config">LogFormat</directive> Áö½Ã¾î¸¦
129 »ç¿ëÇÏ¿© ·Î±×¿¡ Æ÷ÇÔÇÒ ³»¿ëÀ» ½±°Ô ¼±ÅÃÇÒ ¼ö ÀÖ´Ù. ÀÌ ÀýÀº
130 ¼¹ö°¡ Á¢±Ù ·Î±×¿¡ ¾µ ³»¿ëÀ» ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÑ´Ù.</p>
132 <p>¹°·Ð Á¢±Ù ·Î±×¿¡ Á¤º¸¸¦ ±â·ÏÇÏ´Â °ÍÀº ·Î±× °ü¸®ÀÇ ½ÃÀÛÀÏ
133 »ÓÀÌ´Ù. ´ÙÀ½ ´Ü°è´Â ÀÌ Á¤º¸¸¦ ºÐ¼®ÇÏ¿© À¯¿ëÇÑ Åë°è¸¦ ¸¸µå´Â
134 °ÍÀÌ´Ù. ÀÌ ¹®¼´Â ÀϹÝÀûÀÎ ·Î±× ºÐ¼®¿¡ ´ëÇؼ ´Ù·çÁö ¾ÊÀ¸¸ç,
135 ·Î±× ºÐ¼®Àº ½ÇÁ¦ À¥¼¹ö°¡ ÇÒ ÀÏÀÌ ¾Æ´Ï´Ù. ·Î±× ºÐ¼®¿¡ ´ëÇÑ
136 Á¤º¸¿Í ·Î±×¸¦ ºÐ¼®ÇÏ´Â ¼ÒÇÁÆ®¿þ¾î¿¡ ´ëÇؼ´Â <a
137 href="http://dmoz.org/Computers/Software/Internet/Site_Management/Log_analysis/">Open Directory</a>³ª
138 <a href="http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/Log_Analysis_Tools/">Yahoo</a>¸¦
141 <p>¾ÆÆÄÄ¡ À¥¼¹ö´Â ÀÌÀüºÎÅÍ mod_log_referer, mod_log_agent,
142 <directive module="mod_log_config">CustomLog</directive>
143 °°Àº ¸ðµâ°ú Áö½Ã¾î¸¦ »ç¿ëÇÏ¿© Á¢±Ù ·Î±×¸¦ ´Ù·ç¾ú´Ù. Áö±ÝÀº
144 <directive module="mod_log_config">CustomLog</directive>
145 Áö½Ã¾î°¡ ¿À·¡µÈ Áö½Ã¾îµéÀÇ ¸ðµç ±â´ÉÀ» À̾î¹Þ¾Ò´Ù.</p>
147 <p>Á¢±Ù ·Î±×ÀÇ Çü½ÄÀº ¸Å¿ì »ç¿ëÀÚÁ¤ÀÇ °¡´ÉÇÏ´Ù. Çü½ÄÀº CÀÇ
148 printf(1) Çü½Ä¹®ÀÚ¿°ú ¸Å¿ì À¯»çÇÑ Çü½Ä¹®ÀÚ¿À» »ç¿ëÇÏ¿©
149 ÁöÁ¤ÇÑ´Ù. ´ÙÀ½ Àý¿¡ ¿¹¸¦ µé¾ú´Ù. Çü½Ä¹®ÀÚ¿¿¡ »ç¿ë°¡´ÉÇÑ
150 ¸ðµç ³»¿ëÀ» ¾Ë·Á¸é <module>mod_log_config</module> <a
151 href="mod/mod_log_config.html#formats">Çü½Ä¹®ÀÚ¿</a>À»
154 <section id="common">
155 <title>Common ·Î±× Çü½Ä</title>
157 <p>Á¢±Ù ·Î±×ÀÇ ÀüÇüÀûÀÎ ¼³Á¤Àº ´ÙÀ½°ú °°´Ù.</p>
160 LogFormat "%h %l %u %t \"%r\" %>s %b" common<br />
161 CustomLog logs/access_log common
164 <p>±×·¯¸é ÁöÁ¤ÇÑ ·Î±× Çü½Ä¹®ÀÚ¿À» <em>º°¸í</em>
165 <code>common</code>À¸·Î Á¤ÀÇÇÑ´Ù. Çü½Ä¹®ÀÚ¿Àº ÆÛ¼¾Æ®
166 Áö½Ã¾îµé·Î ±¸¼ºµÇ¸ç, °¢°¢Àº ¾î¶² Á¤º¸¸¦ ±â·ÏÇÒÁö ¾Ë¸°´Ù.
167 Çü½Ä¹®ÀÚ¿¿¡ ÀÏ¹Ý ¹®ÀÚ¸¦ ÀûÀ¸¸é ±×´ë·Î ·Î±×¿¡ Ãâ·ÂµÈ´Ù.
168 µû¿ÈÇ¥ ¹®ÀÚ(<code>"</code>)¸¦ Ãâ·ÂÇÏ°í ½Í´Ù¸é ¹é½½·¡½¬¸¦
169 ¾Õ¿¡ ºÙ¿©¼ Çü½Ä¹®ÀÚ¿ÀÇ ³¡ÀÌ ¾Æ´ÔÀ» Ç¥½ÃÇÑ´Ù. Çü½Ä¹®ÀÚ¿¿¡
170 ÁÙ¹Ù²Þ "<code>\n</code>", ÅÇ "<code>\t</code>"¿Í °°Àº
171 Ư¼ö Á¶Àý¹®ÀÚ¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
173 <p><directive module="mod_log_config">CustomLog</directive>
174 Áö½Ã¾î´Â Á¤ÀÇÇÑ <em>º°¸í</em>À» »ç¿ëÇÏ´Â »õ·Î¿î ·Î±×ÆÄÀÏÀ»
175 ¸¸µç´Ù. Á¢±Ù ·Î±×ÀÇ ÆÄÀϸíÀÌ ½½·¡½¬·Î ½ÃÀÛÇÏÁö¾ÊÀ¸¸é
176 <directive module="core">ServerRoot</directive>ÀÇ »ó´ë°æ·ÎÀÌ´Ù.</p>
178 <p>¾ÕÀÇ ¼³Á¤Àº °øÅë·Î±×Çü½Ä(Common Log Format, CLF)À̶ó´Â
179 Çü½ÄÀ¸·Î ·Î±× Ç׸ñÀ» ±â·ÏÇÑ´Ù. ¿©·¯ ´Ù¸¥ À¥¼¹öµéµµ ÀÌ·±
180 Ç¥ÁØ Çü½ÄÀ¸·Î ·Î±×¸¦ ¸¸µé¸ç, ¿©·¯ ·Î±× ºÐ¼® ÇÁ·Î±×·¥¿¡¼
181 ÀÐÀ» ¼ö ÀÖ´Ù. CLF·Î ¸¸µç ·Î±×ÆÄÀÏ Ç׸ñÀº ´ÙÀ½°ú °°´Ù:</p>
184 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET
185 /apache_pb.gif HTTP/1.0" 200 2326
188 <p>ÀÌÁ¦ ·Î±× Ç׸ñÀÇ °¢ ºÎºÐÀ» ¼³¸íÇÑ´Ù.</p>
191 <dt><code>127.0.0.1</code> (<code>%h</code>)</dt>
193 <dd>¼¹ö¿¡ ¿äûÀ» ÇÑ Å¬¶óÀ̾ðÆ®(¿ø°Ý È£½ºÆ®)ÀÇ IP
195 module="core">HostnameLookups</directive>°¡
196 <code>On</code>À̶ó¸é È£½ºÆ®¸íÀ» ã¾Æ¼ IP ÁÖ¼Ò ÀÚ¸®¿¡
197 ´ë½Å ¾´´Ù. ±×·¯³ª ÀÌ ¼³Á¤Àº ¼¹ö¸¦ ¸Å¿ì ´À¸®°Ô ÇÒ ¼ö
198 ÀÖÀ¸¹Ç·Î ÃßõÇÏÁö ¾Ê´Â´Ù. È£½ºÆ®¸íÀ» ¾Ë·Á¸é ´ë½Å ³ªÁß¿¡
199 <a href="programs/logresolve.html">logresolve</a>¿Í
200 °°Àº ·Î±×¸¦ ó¸®ÇÏ´Â ÇÁ·Î±×·¥À» »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù.
201 ¿©±â¿¡ ³ª¿Â IP ÁÖ¼Ò´Â »ç¿ëÀÚ°¡ »ç¿ëÇÏ´Â ÄÄÇ»ÅÍ ÁÖ¼Ò°¡
202 ¾Æ´Ò ¼ö ÀÖ´Ù. ÇÁ·Ï½Ã ¼¹ö°¡ »ç¿ëÀÚ¿Í ¼¹ö»çÀÌ¿¡ Á¸ÀçÇÑ´Ù¸é,
203 ¿ø·¡ ÄÄÇ»ÅÍ ÁÖ¼Ò°¡ ¾Æ´Ï¶ó ÇÁ·Ï½ÃÀÇ ÁÖ¼Ò°¡ ±â·ÏµÉ °ÍÀÌ´Ù.</dd>
205 <dt><code>-</code> (<code>%l</code>)</dt>
207 <dd>Ãâ·Â¿¡¼ "»©±â±âÈ£"´Â ¿äûÇÑ Á¤º¸°¡ ¾øÀ½À» ³ªÅ¸³½´Ù.
208 ÀÌ °æ¿ì ¿©±â¿¡ ³ª¿Ã Á¤º¸´Â Ŭ¶óÀ̾ðÆ® ÄÄÇ»ÅÍÀÇ
209 <code>identd</code>°¡ Á¦°øÇÒ Å¬¶óÀ̾ðÆ®ÀÇ RFC 1413
210 ½Å¿øÀÌ´Ù. ÀÌ Á¤º¸´Â ¸Å¿ì ¹ÏÀ» ¼ö ¾ø±â¶§¹®¿¡, ±ä¹ÐÈ÷
211 °ü¸®µÇ´Â ³»ºÎ ³×Æ®¿÷ÀÌ ¾Æ´Ï¶ó¸é Àý´ë·Î ÀÌ Á¤º¸¸¦ »ç¿ëÇϸé
212 ¾ÈµÈ´Ù. <directive module="core">IdentityCheck</directive>°¡
213 <code>On</code>ÀÌ ¾Æ´Ï¶ó¸é ¾ÆÆÄÄ¡ À¥¼¹ö´Â ÀÌ Á¤º¸¸¦
214 ¾Ë¾Æº¸·Á°í ½ÃµµÇÏÁöµµ ¾Ê´Â´Ù.</dd>
216 <dt><code>frank</code> (<code>%u</code>)</dt>
218 <dd>ÀÌ´Â HTTP ÀÎÁõÀ¸·Î ¾Ë¾Æ³½ ¹®¼¸¦ ¿äûÇÑ »ç¿ëÀÚÀÇ
219 useridÀÌ´Ù. º¸Åë ÀÌ °ªÀº CGI ½ºÅ©¸³Æ®¿¡°Ô
220 <code>REMOTE_USER</code> ȯ°æº¯¼ö·Î ³Ñ°ÜÁø´Ù. ¿äûÀÇ
221 »óÅÂÄڵ尡 401À̶ó¸é (¾Æ·¡ Âü°í) »ç¿ëÀÚ°¡ ¾ÆÁ÷ ÀÎÁõÀ»
222 °ÅÄ¡Áö ¾Ê¾ÒÀ¸¹Ç·Î ÀÌ °ªÀ» ¹ÏÀ¸¸é ¾ÈµÈ´Ù. ¹®¼¸¦ ¾ÏÈ£·Î
223 º¸È£ÇÏÁö ¾Ê´Â´Ù¸é ÀÌ Ç׸ñÀº ÀÌÀü Ç׸ñ°ú °°ÀÌ
224 "<code>-</code>"ÀÌ´Ù.</dd>
226 <dt><code>[10/Oct/2000:13:55:36 -0700]</code>
227 (<code>%t</code>)</dt>
230 ¼¹ö°¡ ¿äû󸮸¦ ¸¶Ä£ ½Ã°£.
234 <code>[day/month/year:hour:minute:second zone]<br />
236 month = ¼ýÀÚ 3°³<br />
237 year = ¼ýÀÚ 4°³<br />
238 hour = ¼ýÀÚ 2°³<br />
239 minute = ¼ýÀÚ 2°³<br />
240 second = ¼ýÀÚ 2°³<br />
241 zone = (`+' | `-') ¼ýÀÚ 4°³</code>
243 ·Î±× Çü½Ä¹®ÀÚ¿¿¡ <code>%{format}t</code>¸¦ »ç¿ëÇÏ¿©
244 ´Ù¸¥ Çü½ÄÀ¸·Î ½Ã°£À» Ãâ·ÂÇÒ ¼ö ÀÖ´Ù. <code>format</code>Àº
245 C Ç¥ÁØ ¶óÀ̺귯¸®ÀÇ <code>strftime(3)</code>°ú °°´Ù.
248 <dt><code>"GET /apache_pb.gif HTTP/1.0"</code>
249 (<code>\"%r\"</code>)</dt>
251 <dd>Ŭ¶óÀ̾ðÆ®ÀÇ ¿äûÁÙÀÌ ½Öµû¿ÈÇ¥·Î ¹¿©ÀÖ´Ù. ¿äûÁÙÀº
252 ¸Å¿ì À¯¿ëÇÑ Á¤º¸¸¦ ´ã°í ÀÖ´Ù. ù°, Ŭ¶óÀ̾ðÆ®°¡ »ç¿ëÇÑ
253 ¸Þ½áµå´Â <code>GET</code>ÀÌ´Ù. µÑ°, Ŭ¶óÀ̾ðÆ®´Â ÀÚ¿ø
254 <code>/apache_pb.gif</code>¸¦ ¿äûÇÑ´Ù. ¼¼¹ø°, Ŭ¶óÀ̾ðÆ®´Â
255 <code>HTTP/1.0</code> ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÑ´Ù. ¿äûÁÙÀÇ
256 ¿©·¯ ºÎºÐÀ» µû·Î ·Î±×ÇÒ ¼öµµ ÀÖ´Ù. ¿¹¸¦ µé¾î, Çü½Ä¹®ÀÚ¿
257 "<code>%m %U%q %H</code>"Àº "<code>%r</code>"°ú ¶È°°ÀÌ
258 ¸Þ½áµå, °æ·Î, ÁúÀǹ®ÀÚ¿, ÇÁ·ÎÅäÄÝÀ» ·Î±×ÇÑ´Ù.</dd>
260 <dt><code>200</code> (<code>%>s</code>)</dt>
262 <dd>ÀÌ´Â ¼¹ö°¡ Ŭ¶óÀ̾ðÆ®¿¡°Ô º¸³»´Â »óÅÂÄÚµåÀÌ´Ù. ÀÌ
263 Á¤º¸´Â (2·Î ½ÃÀÛÇÏ´Â ÄÚµå) ¿äûÀÌ ¼º°øÇÏ¿´´ÂÁö, (4·Î
264 ½ÃÀÛÇÏ´Â ÄÚµå) Ŭ¶óÀ̾ðÆ®¿¡ ¿À·ù°¡ ÀÖ´ÂÁö, (5·Î ½ÃÀÛÇÏ´Â
265 ÄÚµå) ¼¹ö¿¡ ¿À·ù°¡ ÀÖ´ÂÁö ¾Ë·ÁÁֹǷΠ¸Å¿ì Áß¿äÇÏ´Ù.
266 »óÅÂÄÚµåÀÇ Àüü ¸ñ·ÏÀº <a
267 href="http://www.w3.org/Protocols/rfc2616/rfc2616.txt">HTTP
268 ±Ô¾à</a> (RFC2616 section 10)¿¡¼ ãÀ» ¼ö ÀÖ´Ù.</dd>
270 <dt><code>2326</code> (<code>%b</code>)</dt>
272 <dd>¸¶Áö¸· Ç׸ñÀº ÀÀ´ä Çì´õ¸¦ Á¦¿ÜÇÏ°í Ŭ¶óÀ̾ðÆ®¿¡°Ô
273 º¸³»´Â ³»¿ëÀÇ Å©±â¸¦ ³ªÅ¸³½´Ù. Ŭ¶óÀ̾ðÆ®¿¡°Ô º¸³»´Â
274 ³»¿ëÀÌ ¾ø´Ù¸é ÀÌ °ªÀº "<code>-</code>"ÀÌ´Ù. ³»¿ëÀÌ
275 ¾ø´Â °æ¿ì "<code>0</code>"À» ·Î±×ÇÏ·Á¸é ´ë½Å
276 <code>%B</code>¸¦ »ç¿ëÇÑ´Ù.</dd>
280 <section id="combined">
281 <title>Combined ·Î±× Çü½Ä</title>
283 <p>ÀÚÁÖ »ç¿ëµÇ´Â ´Ù¸¥ Çü½Ä¹®ÀÚ¿Àº °áÇյȷα×Çü½Ä(Combined
284 Log Format)ÀÌ´Ù. ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÑ´Ù.</p>
287 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
288 \"%{User-agent}i\"" combined<br />
289 CustomLog log/access_log combined
292 <p>ÀÌ Çü½ÄÀº µÎ Ç׸ñÀ» ´õ Ãß°¡ÇÑ °ÍÀ» Á¦¿ÜÇÏ°í´Â Common
293 ·Î±× Çü½Ä°ú ¿ÏÀüÈ÷ °°´Ù. Ãß°¡µÈ Ç׸ñµéÀº ÆÛ¼¾Æ® Áö½Ã¾î
294 <code>%{<em>header</em>}i</code>¸¦ »ç¿ëÇÑ´Ù. ¿©±â¼
295 <em>header</em> ÀÚ¸®¿¡ HTTP ¿äû Çì´õ À̸§ÀÌ ³ª¿Ã ¼ö
296 ÀÖ´Ù. ÀÌ Çü½ÄÀÇ Á¢±Ù ·Î±×´Â ´ÙÀ½°ú °°´Ù:</p>
299 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET
300 /apache_pb.gif HTTP/1.0" 200 2326
301 "http://www.example.com/start.html" "Mozilla/4.08 [en]
305 <p>Ãß°¡µÈ Ç׸ñÀº:</p>
308 <dt><code>"http://www.example.com/start.html"</code>
309 (<code>\"%{Referer}i\"</code>)</dt>
311 <dd>"Referer" (¸ÂÃã¹ý Ʋ¸®Áö¾Ê¾ÒÀ½) HTTP ¿äû Çì´õ.
312 Ŭ¶óÀ̾ðÆ®°¡ ÂüÁ¶Çß´Ù°í ¼¹ö¿¡°Ô ¾Ë¸° »çÀÌÆ®ÀÌ´Ù.
313 (Áï, <code>/apache_pb.gif</code>¸¦ ¸µÅ©ÇÏ¿´°Å³ª Æ÷ÇÔÇÑ
316 <dt><code>"Mozilla/4.08 [en] (Win98; I ;Nav)"</code>
317 (<code>\"%{User-agent}i\"</code>)</dt>
319 <dd>User-Agent HTTP ¿äû Çì´õ. Ŭ¶óÀ̾ðÆ® ºê¶ó¿ìÀú°¡
320 Àڽſ¡ ´ëÇØ ¾Ë¸®´Â ½Äº°Á¤º¸ÀÌ´Ù.</dd>
324 <section id="multiple">
325 <title>¿©·¯ Á¢±Ù ·Î±×</title>
327 <p>¼³Á¤ÆÄÀÏ¿¡ ¿©·¯ <directive
328 module="mod_log_config">CustomLog</directive> Áö½Ã¾î¸¦
329 »ç¿ëÇϸé Á¢±Ù ·Î±×°¡ ¿©·¯°³ ¸¸µé¾îÁø´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½
330 ¼³Á¤Àº ¼¼°¡Áö Á¢±Ù ·Î±×¸¦ ¸¸µç´Ù. ù¹ø°´Â ±âº» CLF Á¤º¸¸¦
331 ±â·ÏÇÏ°í, µÎ¹ø°¿Í ¼¼¹ø°´Â referer¿Í ºê¶ó¿ìÀú Á¤º¸¸¦
332 ±â·ÏÇÑ´Ù. ¸¶Áö¸· µÎ <directive
333 module="mod_log_config">CustomLog</directive> ÁÙÀº ¾î¶»°Ô
334 ÀÌÀü <code>ReferLog</code>¿Í <code>AgentLog</code> Áö½Ã¾îÀÇ
335 ±â´ÉÀ» Èä³»³¾ ¼ö ÀÖ´ÂÁö º¸¿©ÁØ´Ù.</p>
338 LogFormat "%h %l %u %t \"%r\" %>s %b" common<br />
339 CustomLog logs/access_log common<br />
340 CustomLog logs/referer_log "%{Referer}i -> %U"<br />
341 CustomLog logs/agent_log "%{User-agent}i"
344 <p>¶Ç, ÀÌ ¿¹´Â <directive
345 module="mod_log_config">LogFormat</directive>À¸·Î ¹Ýµå½Ã
346 º°¸íÀ» Á¤ÀÇÇÒ ÇÊ¿ä´Â ¾øÀ½À» º¸¿©ÁØ´Ù. ´ë½Å <directive
347 module="mod_log_config">CustomLog</directive> Áö½Ã¾î¿¡
348 Á÷Á¢ ·Î±× Çü½ÄÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù.</p>
351 <section id="conditional">
352 <title>Á¶°ÇºÎ ·Î±×</title>
354 <p>Ŭ¶óÀ̾ðÆ® ¿äûÀÇ ¼º°Ý¿¡ µû¶ó ÇØ´ç Ç׸ñÀ» Á¢±Ù ·Î±×¿¡
355 ±â·ÏÇÏÁö¾Ê°í ½ÍÀ» ¶§°¡ ÀÖ´Ù. <a href="env.html">ȯ°æº¯¼ö</a>¸¦
356 »ç¿ëÇÏ¸é ½±°Ô ÇØ°áµÈ´Ù. ¸ÕÀú, Ŭ¶óÀ̾ðÆ®°¡ ƯÁ¤ Á¶°ÇÀ»
357 ¸¸Á·Çϸé ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ ÀÛ¾÷¿¡´Â º¸Åë <directive
358 module="mod_setenvif">SetEnvIf</directive>¸¦ »ç¿ëÇÑ´Ù.
359 ±×¸®°í <directive module="mod_log_config">CustomLog</directive>
360 Áö½Ã¾î¿¡ <code>env=</code>À» »ç¿ëÇÏ¿© ȯ°æº¯¼ö À¯¹«¿¡
361 µû¶ó ¿äûÀ» Áý¾î³Ö°Å³ª »«´Ù. ¿¹¸¦ µé¸é:</p>
364 # loop-back ÀÎÅÍÆäÀ̽º¿¡¼ ¿äûÀ» Ç¥½ÃÇÑ´Ù<br />
365 SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog<br />
366 # robots.txt ÆÄÀÏ¿¡ ´ëÇÑ ¿äûÀ» Ç¥½ÃÇÑ´Ù<br />
367 SetEnvIf Request_URI "^/robots\.txt$" dontlog<br />
368 # ³ª¸ÓÁö¸¦ ·Î±×¿¡ ³²±ä´Ù<br />
369 CustomLog logs/access_log common env=!dontlog
372 <p>´Ù¸¥ ¿¹·Î ¿µ¾î±Ç »ç¿ëÀÚÀÇ ¿äû¸¸À» ÇÑ ·Î±×ÆÄÀÏ¿¡ ±â·ÏÇÏ°í,
373 ºñ¿µ¾î±Ç »ç¿ëÀÚÀÇ ¿äûÀº ´Ù¸¥ ·Î±×ÆÄÀÏ¿¡ ±â·ÏÇÏ´Â °æ¿ì¸¦
377 SetEnvIf Accept-Language "en" english<br />
378 CustomLog logs/english_log common env=english<br />
379 CustomLog logs/non_english_log common env=!english
382 <p>Á¶°ÇºÎ ·Î±×´Â ¸Å¿ì °·ÂÇÏ°í À¯¿¬ÇÏÁö¸¸, ÀÌ°ÍÀÌ ·Î±×
383 ³»¿ëÀ» Á¶ÀýÇÏ´Â À¯ÀÏÇÑ ¹æ¹ýÀº ¾Æ´Ï´Ù. ·Î±×ÆÄÀÏÀº ¼¹öÀÇ
384 ¸ðµç ÇൿÀ» ±â·ÏÇÒ¶§ ´õ À¯¿ëÇÏ´Ù. ³ªÁß¿¡ ¿øÇÏÁö¾Ê´Â ¿äûÀ»
385 Á¦¿ÜÇÏ°í ·Î±×ÆÄÀÏÀ» ºÐ¼®ÇÏ´Â °ÍÀÌ ´õ ½±´Ù.</p>
389 <section id="rotation">
390 <title>·Î±× ¼øȯ (Log Rotation)</title>
392 <p>Á¶±Ý ¹Ù»Û ¼¹öÁ¶Â÷µµ ·Î±×ÆÄÀÏ¿¡ ÀúÀåµÇ´Â Á¤º¸·®Àº ¸Å¿ì
393 ¸¹´Ù. Á¢¼Ó ·Î±×´Â º¸Åë ¸¸¹ø ¿äû´ç 1MB ÀÌ»ó Áõ°¡ÇÑ´Ù. °á°úÀûÀ¸·Î
394 ±âÁ¸ÀÇ ·Î±×¸¦ ¿Å±â°Å³ª Áö¿ì´Â ¹æ¹ýÀ¸·Î ·Î±×¸¦ ÁÖ±âÀûÀ¸·Î
395 ¼øÈ°ÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. ¾ÆÆÄÄ¡´Â ÆÄÀÏÀ» ¿°íÀÖ´Â µ¿¾È¿¡´Â °è¼Ó
396 ÀÌÀü ·Î±×ÆÄÀÏ¿¡ ¾²±â¶§¹®¿¡ ¼¹ö°¡ ½ÇÇàÁßÀ϶§ ·Î±×¸¦ ¼øȯÇÒ
397 ¼ö ¾ø´Ù. ´ë½Å ·Î±×ÆÄÀÏÀ» ¿Å±â°Å³ª Áö¿îÈÄ ¼¹ö¸¦ <a
398 href="stopping.html">Àç½ÃÀÛ</a>ÇÏ¿©, ·Î±×ÆÄÀÏÀ» »õ·Î ¿¾î¾ß
401 <p><em>Á¡ÀÝÀº</em> Àç½ÃÀÛÀ» »ç¿ëÇÏ¸é ¼¹ö´Â Ŭ¶óÀ̾ðÆ®¿Í
402 ±âÁ¸ÀÇ È¤Àº ´ë±âµÈ ¿¬°áÀ» ÀÒÁö¾Ê°í »õ ·Î±×ÆÄÀÏÀ» ¿ ¼ö ÀÖ´Ù.
403 ±×·¯³ª À̸¦ À§ÇØ ¼¹ö´Â ¿À·¡µÈ ¿äûÀÇ ¼ºñ½º¸¦ ³¡³»´Â µ¿¾È
404 ÀÌÀü ·Î±×ÆÄÀÏÀ» °è¼Ó »ç¿ëÇØ¾ß ÇÑ´Ù. ±×·¯¹Ç·Î Àç½ÃÀÛÇÑÈÄ
405 ·Î±×ÆÄÀÏÀ» ó¸®Çϱâ Àü¿¡ ¾ó¸¶°£ ±â´Ù¸± ÇÊ¿ä°¡ ÀÖ´Ù. ÀϹÝÀûÀ¸·Î
406 ´ÙÀ½°ú °°ÀÌ ·Î±×¸¦ ¼øȯÇÏ°í, µð½ºÅ©°ø°£À» Àý¾àÇϱâÀ§ÇØ ÀÌÀü
410 mv access_log access_log.old<br />
411 mv error_log error_log.old<br />
412 apachectl graceful<br />
414 gzip access_log.old error_log.old
417 <p>·Î±×¸¦ ¼øȯÇÏ´Â ´Ù¸¥ ¹æ¹ýÀº ´ÙÀ½ Àý¿¡¼ ¼³¸íÇÒ <a
418 href="#piped">ÆÄÀÌÇÁ ·Î±×</a>¸¦ »ç¿ëÇÏ´Â °ÍÀÌ´Ù.</p>
422 <title>·Î±×¸¦ ÆÄÀÌÇÁ·Î º¸³»±â</title>
424 <p>¾ÆÆÄÄ¡ À¥¼¹ö´Â ¿À·ù ·Î±×¿Í Á¢±Ù ·Î±×¸¦ ÆÄÀÏ¿¡ Á÷Á¢
425 ¾²Áö¾Ê°í ÆÄÀÌÇÁ¸¦ ÅëÇØ ´Ù¸¥ ÇÁ·Î¼¼½º·Î º¸³¾ ¼ö ÀÖ´Ù. ÀÌ
426 ±â´ÉÀ» »ç¿ëÇÏ¸é ¼¹ö¿¡ Äڵ带 Ãß°¡ÇÏÁö¾Ê°íµµ ¸Å¿ì À¯¿¬ÇÏ°Ô
427 ·Î±×¸¦ ó¸®ÇÒ ¼ö ÀÖ´Ù. ·Î±×¸¦ ÆÄÀÌÇÁ¿¡ ¾²±âÀ§ÇØ ÆÄÀϸí
428 ÀÚ¸®¿¡ ÆÄÀÌÇÁ¹®ÀÚ "<code>|</code>"¿Í µÚ¿¡ Ç¥ÁØÀÔ·ÂÀ¸·Î
429 ·Î±× Ç׸ñÀ» ÀÐÀ» ½ÇÇàÆÄÀϸíÀ» ÀûÀ¸¸é µÈ´Ù. ¾ÆÆÄÄ¡´Â ¼¹ö°¡
430 ½ÃÀÛÇÒ¶§ ÆÄÀÌÇÁ·Î ¿¬°áÇÒ ·Î±× ÇÁ·Î¼¼½º¸¦ ½ÃÀÛÇÏ°í, ¼¹ö°¡
431 ½ÇÇàµÇ´Â µ¿¾È ÇÁ·Î¼¼½º°¡ Á×À¸¸é ´Ù½Ã ½ÃÀÛÇÑ´Ù. (ÀÌ ¸¶Áö¸·
432 ±â´É¶§¹®¿¡ ¿ì¸®´Â ÀÌ ¹æ¹ýÀ» "¹ÏÀ» ¼ö ÀÖ´Â ÆÄÀÌÇÁ ·Î±×"¶ó°í
435 <p>ÆÄÀÌÇÁ·Î ¿¬°áµÈ ·Î±× ÇÁ·Î¼¼½º´Â ºÎ¸ð ¾ÆÆÄÄ¡ httpd ÇÁ·Î¼¼½º°¡
436 ¶ç¿ì°í, ÇÁ·Î¼¼½ºÀÇ useridµµ °°´Ù. Áï, ÆÄÀÌÇÁ·Î ¿¬°áµÈ ·Î±×
437 ÇÁ·Î±×·¥Àº º¸Åë root·Î ½ÇÇàµÈ´Ù. ±×·¯¹Ç·Î ÇÁ·Î±×·¥À» °£´ÜÇÏ°í
438 ¾ÈÀüÇÏ°Ô ¸¸µå´Â °ÍÀÌ ¸Å¿ì Áß¿äÇÏ´Ù.</p>
440 <p>ÆÄÀÌÇÁ·Î ºÎ¸£´Â Àüü ¸í·É¾î¸¦ µû¿ÈÇ¥·Î ¹À½À» ¸í½ÉÇ϶ó.
441 ÀÌ ¿¹´Â Á¢±Ù ·Î±×¿¡ ´ëÇÑ °ÍÀÌÁö¸¸, ¿À·ù ·Î±×µµ ¸¶Âù°¡Áö´Ù.</p>
443 <p>¼¹ö¸¦ Àç½ÃÀÛÇÏÁö¾Ê°í ·Î±×¸¦ ¼øȯÇÒ ¼ö ÀÖ´Â °ÍÀÌ ÆÄÀÌÇÁ
444 ·Î±×¸¦ »ç¿ëÇÏ´Â Áß¿äÇÑ ÀÌÀ¯´Ù. ¾ÆÆÄÄ¡ À¥¼¹ö´Â À̸¦ À§ÇØ
445 <a href="programs/rotatelogs.html">rotatelogs</a>¶ó´Â °£´ÜÇÑ
446 ÇÁ·Î±×·¥À» Æ÷ÇÔÇÑ´Ù. ¿¹¸¦ µé¾î 24½Ã°£¸¶´Ù ·Î±×¸¦ ¼øȯÇÑ´Ù¸é:</p>
449 CustomLog "|/usr/local/apache/bin/rotatelogs
450 /var/log/access_log 86400" common
454 href="http://www.cronolog.org/">cronolog</a>¶ó´Â ºñ½ÁÇÏÁö¸¸
455 ÈξÀ ´õ À¯¿¬ÇÑ ·Î±× ¼øȯ ÇÁ·Î±×·¥ÀÌ ÀÖ´Ù.</p>
457 <p>Á¶°ÇºÎ ·Î±×¿Í °°ÀÌ ÆÄÀÌÇÁ ·Î±×´Â ¸Å¿ì °·ÂÇÑ µµ±¸Áö¸¸,
458 ³ªÁß¿¡ ó¸®ÇÏ´Â µîÀÇ ´õ °£´ÜÇÑ ¹æ¹ýÀÌ °¡´ÉÇÑ °æ¿ì »ç¿ëÇؼ´Â
462 <section id="virtualhost">
463 <title>°¡»óÈ£½ºÆ®</title>
465 <p>¸¹Àº <a href="vhosts/">°¡»óÈ£½ºÆ®</a>°¡ ÀÖ´Â ¼¹ö¸¦
466 ¿î¿µÇÒ¶§ ¿©·¯°¡Áö ¹æ¹ýÀ¸·Î ·Î±×ÆÄÀÏÀ» ´Ù·ê ¼ö ÀÖ´Ù. ¸ÕÀú,
467 È£½ºÆ®°¡ ÇÑ°³ÀÎ ¼¹ö¿Í °°ÀÌ ·Î±×¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù. <directive
468 module="core" type="section">VirtualHost</directive> ¼½¼ÇÀÌ
469 ¾Æ´Ñ ÁÖ¼¹ö ¼³Á¤¿¡ ·Î±× Áö½Ã¾î¸¦ µÎ¸é ¸ðµç ¿äûÀÌ °°Àº Á¢±Ù
470 ·Î±×¿Í ¿À·ù ·Î±×·Î ±â·ÏµÈ´Ù. ÀÌ ¹æ¹ýÀº °¡»óÈ£½ºÆ®º°·Î ½±°Ô
471 Åë°è󸮸¦ ÇÒ ¼ö ¾ø´Ù.</p>
473 <p><directive module="core" type="section">VirtualHost</directive>
474 ¼½¼Ç ¾È¿¡ <directive module="mod_log_config">CustomLog</directive>³ª
475 <directive module="core">ErrorLog</directive> Áö½Ã¾î¸¦
476 »ç¿ëÇϸé ÇØ´ç °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ ¿äû°ú ¿À·ù¸¸ÀÌ ÁöÁ¤µÈ
477 ÆÄÀÏ¿¡ ±â·ÏµÈ´Ù. ·Î±× Áö½Ã¾î°¡ ¾ø´Â ´Ù¸¥ °¡»óÈ£½ºÆ®´Â °è¼Ó
478 ÁÖ¼¹ö ·Î±×¿¡ ·Î±×¸¦ ±â·ÏÇÑ´Ù. ÀÌ ¹æ¹ýÀº °¡»óÈ£½ºÆ® °³¼ö°¡
479 ÀûÀ» °æ¿ì ¸Å¿ì À¯¿ëÇÏÁö¸¸, È£½ºÆ® ¼ö°¡ ¸¹´Ù¸é °ü¸®Çϱâ
480 Èûµé¾îÁø´Ù. ¶Ç, <a href="vhosts/fd-limits.html">ÆÄÀϱâ¼úÀÚ°¡
481 ºÎÁ·ÇÑ</a> ¹®Á¦°¡ ÀÚÁÖ ¹ß»ýÇÑ´Ù.</p>
483 <p>Á¢±Ù ·Î±×ÀÇ °æ¿ì ¸Å¿ì ÁÁÀº ÇØ°áÃ¥ÀÌ ÀÖ´Ù. ·Î±× Çü½Ä¹®ÀÚ¿¿¡
484 °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ Á¤º¸¸¦ Ãß°¡ÇÏ¸é ¸ðµç È£½ºÆ®°¡ °°Àº ·Î±×¸¦
485 »ç¿ëÇÏ°í, ³ªÁß¿¡ ·Î±×¸¦ °¡»óÈ£½ºÆ®º°·Î ³ª´ ¼ö ÀÖ´Ù. ¿¹¸¦
486 µé¾î, ´ÙÀ½ Áö½Ã¾î¸¦ ºÁ¶ó.</p>
489 LogFormat "%v %l %u %t \"%r\" %>s %b"
491 CustomLog logs/access_log comonvhost
494 <p><code>%v</code>´Â ¿äûÀ» ¼ºñ½ºÇÏ´Â °¡»óÈ£½ºÆ® À̸§À»
495 ±â·ÏÇÑ´Ù. ³ªÁß¿¡ <a href="programs/other.html">split-logfile</a>
496 °°Àº ÇÁ·Î±×·¥À¸·Î Á¢±Ù ·Î±×¸¦ °¡»óÈ£½ºº°·Î ³ª´ ¼ö ÀÖ´Ù.</p>
500 <title>´Ù¸¥ ·Î±×ÆÄÀÏ</title>
504 <module>mod_cgi</module>
505 <module>mod_rewrite</module>
508 <directive module="mpm_common">PidFile</directive>
509 <directive module="mod_rewrite">RewriteLog</directive>
510 <directive module="mod_rewrite">RewriteLogLevel</directive>
511 <directive module="mod_cgi">ScriptLog</directive>
512 <directive module="mod_cgi">ScriptLogBuffer</directive>
513 <directive module="mod_cgi">ScriptLogLength</directive>
517 <section id="pidfile">
518 <title>PID ÆÄÀÏ</title>
520 <p>¾ÆÆÄÄ¡ À¥¼¹ö´Â ½ÃÀÛÇÒ¶§ <code>logs/httpd.pid</code>
521 ÆÄÀÏ¿¡ ºÎ¸ð httpd ÇÁ·Î¼¼½ºÀÇ process id¸¦ ÀúÀåÇÑ´Ù. ÀÌ
522 ÆÄÀϸíÀº <directive module="mpm_common">PidFile</directive>
523 Áö½Ã¾î·Î º¯°æÇÒ ¼ö ÀÖ´Ù. process-id´Â °ü¸®ÀÚ°¡ ºÎ¸ð ÇÁ·Î¼¼½º¿¡
524 ½Ã±×³ÎÀ» º¸³» ¼¹ö¸¦ Àç½ÃÀÛÇϰųª Á×À϶§ »ç¿ëÇÑ´Ù.
525 À©µµ¿ìÁî¿¡¼´Â ´ë½Å -k ¸í·ÉÇà¿É¼ÇÀ» »ç¿ëÇÑ´Ù. ´õ ÀÚ¼¼ÇÑ
526 Á¤º¸´Â <a href="stopping.html">Áß´Ü°ú Àç½ÃÀÛ</a> ÆäÀÌÁö¸¦
530 <section id="scriptlog">
531 <title>½ºÅ©¸³Æ® ·Î±×</title>
533 <p>µð¹ö±ëÀ» µ½±âÀ§ÇØ <directive
534 module="mod_cgi">ScriptLog</directive> Áö½Ã¾î¸¦ »ç¿ëÇÏ¿©
535 CGI ½ºÅ©¸³Æ®ÀÇ ÀԷ°ú Ãâ·ÂÀ» ±â·ÏÇÒ ¼ö ÀÖ´Ù. ÀÌ Áö½Ã¾î´Â
536 ¿ÀÁ÷ Å×½ºÆ®¿ëÀ¸·Î¸¸ »ç¿ëÇØ¾ß ÇÑ´Ù. ½ÇÁ¦ »ç¿ëÇÏ´Â ¼¹ö¿¡¼
537 »ç¿ëÇÏ¸é ¾ÈµÈ´Ù. ´õ ÀÚ¼¼ÇÑ Á¤º¸´Â <a
538 href="mod/mod_cgi.html">mod_cgi</a> ¹®¼¸¦ Âü°íÇ϶ó.</p>
541 <section id="rewritelog">
542 <title>ÀçÀÛ¼º ·Î±×</title>
544 <p><a href="mod/mod_rewrite.html">mod_rewrite</a>ÀÇ °·ÂÇÏ°í
545 º¹ÀâÇÑ ±â´ÉÀ» »ç¿ëÇÑ´Ù¸é µð¹ö±ëÀ» À§ÇØ °ÅÀÇ Ç×»ó <directive
546 module="mod_rewrite">RewriteLog</directive>¸¦ »ç¿ëÇÒ ÇÊ¿ä°¡
547 ÀÖ´Ù. ÀÌ ·Î±×ÆÄÀÏÀº ÀçÀÛ¼º ¿£ÁøÀÌ ¾î¶»°Ô ¿äûÀ» º¯È¯ÇÏ´ÂÁö¿¡
548 ´ëÇØ ÀÚ¼¼È÷ ¾Ë·ÁÁØ´Ù. ÀÚ¼¼ÇÑ Á¤µµ´Â <directive
549 module="mod_rewrite">RewriteLogLevel</directive> Áö½Ã¾î·Î