home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 November
/
CMCD1104.ISO
/
Software
/
Complet
/
Apache
/
apache_2.0.52-win32-x86-no_ssl.msi
/
Data.Cab
/
F278328_mod_log_config.xml.ko
< prev
next >
Wrap
Extensible Markup Language
|
2004-09-22
|
17KB
|
421 lines
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 1.13.2.14 -->
<!--
Copyright 2002-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modulesynopsis metafile="mod_log_config.xml.meta">
<name>mod_log_config</name>
<description>╝¡╣÷╖╬└╟ ┐Σ├╗└╗ ╖╬▒╫┐í ▒Γ╖╧╟╤┤┘</description>
<status>Base</status>
<sourcefile>mod_log_config.c</sourcefile>
<identifier>log_config_module</identifier>
<summary>
<p>└╠ ╕≡╡Γ└║ ┼¼╢≤└╠╛≡╞«└╟ ┐Σ├╗└╗ ╖╬▒╫┐í └┌└»╖╙░╘ ▒Γ╖╧╟╤┤┘.
└┌╜┼└╠ ┐°╟╧┤┬ ╟ⁿ╜─└╕╖╬ ╖╬▒╫╕ª ▒Γ╖╧╟╥ ╝÷ └╓░φ, ╞─└╧└╠│¬ ┐▄║╬
╟┴╖╬▒╫╖Ñ┐í ┴≈┴ó ╖╬▒╫╕ª ║╕│╛ ╝÷╡╡ └╓┤┘. ┴╢░╟└√ ╖╬▒╫╕ª ╗τ┐δ╟╧╕Θ
┐Σ├╗└╟ ╝║░▌┐í ╡√╢≤ ┐Σ├╗└╗ ╖╬▒╫┐í ├▀░í╟╧░┼│¬ ┴ª┐▄╟╥ ╝÷ └╓┤┘.</p>
<p>└╠ ╕≡╡Γ└║ ╝╝░í┴÷ ┴÷╜├╛ε╕ª ┴ª░°╟╤┤┘. <directive
module="mod_log_config">TransferLog</directive>┤┬ ╖╬▒╫╞─└╧└╗
╕╕╡Θ░φ, <directive module="mod_log_config">LogFormat</directive>└║
┐°╟╧┤┬ ╟ⁿ╜─└╗ ┴ñ╟╧░φ, <directive
module="mod_log_config">CustomLog</directive>┤┬ ╟╤╣°┐í ╖╬▒╫╞─└╧░·
╟ⁿ╜─└╗ ╕≡╡╬ ┴÷┴ñ╟╤┤┘. <directive>TransferLog</directive>┐═
<directive>CustomLog</directive> ┴÷╜├╛ε╕ª ┐⌐╖»╣° ╗τ┐δ╟╧╕Θ
┐Σ├╗└╗ ┐⌐╖» ╞─└╧┐í ▒Γ╖╧╟╥ ╝÷ └╓┤┘.</p>
</summary>
<seealso><a href="../logs.html">╛╞╞──í ╖╬▒╫╞─└╧</a></seealso>
<section id="formats"><title>╖╬▒╫ ╟ⁿ╜─ ┴÷┴ñ╟╧▒Γ</title>
<p><directive module="mod_log_config">LogFormat</directive>░·
<directive module="mod_log_config">CustomLog</directive>
┴÷╜├╛ε└╟ ╟ⁿ╜─ ╛╞▒╘╕╒╞«┤┬ ╣«└┌┐¡└╠┤┘. └╠ ╣«└┌┐¡┐í ╡√╢≤ ┐Σ├╗└╗
╖╬▒╫╞─└╧┐í ▒Γ╖╧╟╤┤┘. ╣«└┌┐¡┐í┤┬ ╖╬▒╫╞─└╧┐í ▒╫┤δ╖╬ ║╣╗τ╡╟┤┬
╣«└┌┐═ ╟α╣┘▓▐░· ┼╟└╗ │¬┼╕│╗┤┬ C└╟ "\n"░· "\t" ┴ª╛ε╣«└┌╕ª
╗τ┐δ╟╥ ╝÷ └╓┤┘. ╖╬▒╫╞─└╧┐í ╡√┐╚╟Ñ│¬ ╣Θ╜╜╖í╜¼╕ª ╛▓╖┴╕Θ ╛╒┐í
╣▌╡σ╜├ ╣Θ╜╜╖í╜¼╕ª └√╛ε┴α╛▀ ╟╤┤┘.</p>
<p>┐Σ├╗└╟ ╞»┬í└║ ╟ⁿ╜─ ╣«└┌┐¡┐í "<code>%</code>" ┴÷╜├╛ε╕ª
╗τ┐δ╟╧┐⌐ ▒Γ╖╧╟╤┤┘. └╠ ┴÷╜├╛ε┤┬ ╖╬▒╫╞─└╧┐í╝¡ ┤┘└╜░· ░░└╠
║»░µ╡╚┤┘.</p>
<table border="1" style="zebra">
<columnspec><column width=".2"/><column width=".8"/></columnspec>
<tr><th>╟ⁿ╜─ ╣«└┌┐¡</th>
<th>╝│╕φ</th></tr>
<tr><td><code>%%</code></td>
<td>╞█╝╛╞« ▒Γ╚ú (<em>╛╞╞──í 2.0.44 └╠╚─</em>)</td></tr>
<tr><td><code>%...a</code></td>
<td>┐°░▌ IP-┴╓╝╥</td></tr>
<tr><td><code>%...A</code></td>
<td>(╝¡╣÷) IP-┴╓╝╥</td></tr>
<tr><td><code>%...B</code></td>
<td>HTTP ╟∞┤⌡╕ª ┴ª┐▄╟╤ └ⁿ╝█ ╣┘└╠╞«╝÷.</td></tr>
<tr><td><code>%...b</code></td>
<td>HTTP ╟∞┤⌡╕ª ┴ª┐▄╟╤ └ⁿ╝█ ╣┘└╠╞«╝÷. CLF ╟ⁿ╜─░· ░░└╠
└ⁿ╝█╟╤ │╗┐δ└╠ ╛°┤┬ ░µ┐∞ 0 ┤δ╜┼ '<code>-</code>'░í │¬┐┬┤┘.</td></tr>
<tr><td><code>%...{<var>Foobar</var>}C</code></td>
<td>╝¡╣÷░í ╝÷╜┼╟╤ ┐Σ├╗┐í╝¡ <var>Foobar</var> ─φ┼░└╟
│╗┐δ.</td></tr>
<tr><td><code>%...D</code></td>
<td>┐Σ├╗└╗ ├│╕«╟╧┤┬╡Ñ ░╔╕░ ╜├░ú (╕╢└╠┼⌐╖╬├╩ ┤▄└º).</td></tr>
<tr><td><code>%...{<var>FOOBAR</var>}e</code></td>
<td>╚»░µ║»╝÷ <var>FOOBAR</var>└╟ │╗┐δ</td></tr>
<tr><td><code>%...f</code></td>
<td>╞─└╧╕φ</td></tr>
<tr><td><code>%...h</code></td>
<td>┐°░▌ ╚ú╜║╞«</td></tr>
<tr><td><code>%...H</code></td>
<td>┐Σ├╗ ╟┴╖╬┼Σ─▌</td></tr>
<tr><td><code>%...{<var>Foobar</var>}i</code></td>
<td>╝¡╣÷░í ╝÷╜┼╟╤ ┐Σ├╗┐í╝¡ <code><var>Foobar</var>:</code>
╟∞┤⌡└╟ │╗┐δ.</td></tr>
<tr><td><code>%...l</code></td>
<td>(└╓┤┘╕Θ identd░í ┴ª░°╟╤) ┐°░▌ ╖╬▒╫└╬╕φ.
<directive
module="mod_ident">IdentityCheck</directive>░í
<code>On</code>└╠ ╛╞┤╧╕Θ ╗⌐▒Γ▒Γ╚ú╕ª ▒Γ╖╧╟╤┤┘.</td></tr>
<tr><td><code>%...m</code></td>
<td>┐Σ├╗ ╕▐╜ß╡σ</td></tr>
<tr><td><code>%...{<var>Foobar</var>}n</code></td>
<td>┤┘╕Ñ ╕≡╡Γ└╠ ▒Γ╖╧╟╤ <var>Foobar</var> │δ╞«(note)
│╗┐δ.</td></tr>
<tr><td><code>%...{<var>Foobar</var>}o</code></td>
<td>└└┤Σ└╟ <code><var>Foobar</var>:</code> ╟∞┤⌡ │╗┐δ.</td></tr>
<tr><td><code>%...p</code></td>
<td>┐Σ├╗└╗ ╝¡║±╜║╟╧┤┬ ╝¡╣÷└╟ ┴ñ▒╘ ╞≈╞«</td></tr>
<tr><td><code>%...P</code></td>
<td>┐Σ├╗└╗ ╝¡║±╜║╟╧┤┬ └┌╜─└╟ ╟┴╖╬╝╝╜║ ID.</td></tr>
<tr><td><code>%...{<var>format</var>}P</code></td>
<td>┐Σ├╗└╗ ╝¡║±╜║╟╧┤┬ └┌╜─└╟ ╟┴╖╬╝╝╜║ ID ╚ñ└║ ╛▓╖╣╡σ
ID. format┐í┤┬ <code>pid</code>┐═ <code>tid</code>░í
░í┤╔╟╧┤┘. (<em>╛╞╞──í 2.0.46 └╠╚─</em>)
</td></tr>
<tr><td><code>%...q</code></td>
<td>┴·└╟╣«└┌┐¡ (┴·└╟╣«└┌┐¡└╠ └╓┤┘╕Θ ╛╒┐í <code>?</code>╕ª
║┘└╠░φ, ╛°┤┘╕Θ ║≤ ╣«└┌┐¡)</td></tr>
<tr><td><code>%...r</code></td>
<td>┐Σ├╗└╟ ├╣╣°┬░ ┴┘</td></tr>
<tr><td><code>%...s</code></td>
<td>╗≤┼┬(status). │╗║╬ ╕«┤┘└╠╖║╝╟╡╚ ┐Σ├╗└╟ ░µ┐∞ *┐°╖í*
┐Σ├╗└╟ ╗≤┼┬└╠┤┘. ├╓┴╛ ┐Σ├╗└╟ ╗≤┼┬┤┬ <code>%...>s</code>.</td></tr>
<tr><td><code>%...t</code></td>
<td>common log format ╜├░ú ╟ⁿ╜─(╟Ñ┴╪ ┐╡╛ε ╟ⁿ╜─)└╟ ╜├░ú</td></tr>
<tr><td><code>%...{<var>format</var>}t</code></td>
<td><code>strftime(3)</code> ╟ⁿ╜─ format└╟ ╜├░ú. (┴÷┐¬╜├░ú└╧
╝÷ └╓└╜)</td></tr>
<tr><td><code>%...T</code></td>
<td>┐Σ├╗└╗ ├│╕«╟╧┤┬╡Ñ ░╔╕░ ╜├░ú (├╩ ┤▄└º).</td></tr>
<tr><td><code>%...u</code></td>
<td>┐°░▌ ╗τ┐δ└┌ (auth░í ┴ª░°╟╧╕τ, ╗≤┼┬(<code>%s</code>)░í
401└╬ ░µ┐∞ └╠╗≤╟╤ ░¬└╗ │¬┐├ ╝÷ └╓└╜)</td></tr>
<tr><td><code>%...U</code></td>
<td>┴·└╟╣«└┌┐¡└╗ ┴ª┐▄╟╤ ┐Σ├╗ URL ░µ╖╬.</td></tr>
<tr><td><code>%...v</code></td>
<td>┐Σ├╗└╗ ╝¡║±╜║╟╤ ╝¡╣÷└╟ ┴ñ▒╘ <directive
module="core">ServerName</directive>.</td></tr>
<tr><td><code>%...V</code></td>
<td><directive module="core">UseCanonicalName</directive>
╝│┴ñ┐í ╡√╕Ñ ╝¡╣÷╕φ.</td></tr>
<tr><td><code>%...X</code></td>
<td>└└┤Σ└╗ ╕╢├╞└╗╢º ┐¼░ß ╗≤┼┬.
<table>
<columnspec><column width=".2"/><column width=".6"/></columnspec>
<tr><td><code>X</code> =</td>
<td>└└┤Σ└╗ ╕╢─í▒Γ └ⁿ┐í ┐¼░ß└╠ ▓≈╛ε┴│┤┘.</td></tr>
<tr><td><code>+</code> =</td>
<td>└└┤Σ└╗ ║╕│╜╚─┐í╡╡ ┐¼░ß└╠ ╗∞╛╞└╓┤┘(keep alive).</td></tr>
<tr><td><code>-</code> = </td>
<td>└└┤Σ└╗ ║╕│╜╚─ ┐¼░ß└╠ ▓≈╛ε┴│┤┘.</td></tr>
</table>
<p>(╛╞╞──í 1.3 ╚─╣▌ ╣÷└ⁿ┐í╝¡ └╠ ┴÷╜├╛ε┤┬
<code>%...c</code>┐┤┴÷╕╕, └ⁿ┼δ└√└╬ ssl
<code>%...{<var>var</var>}c</code> ╣«╣²░· ░π├─╝¡
║»░µ╟▀┤┘.)</p></td></tr>
<tr><td><code>%...I</code></td>
<td>┐Σ├╗░· ╟∞┤⌡╕ª ╞≈╟╘╟╤ ╝÷╜┼ ╣┘└╠╞«╝÷╖╬ 0└╧ ╝÷ ╛°┤┘.
└╠╕ª ╗τ┐δ╟╧╖┴╕Θ <module>mod_logio</module>░í ╟╩┐Σ╟╧┤┘.</td></tr>
<tr><td><code>%...O</code></td>
<td>╟∞┤⌡╕ª ╞≈╟╘╟╤ ╝█╜┼ ╣┘└╠╞«╝÷╖╬ 0└╧ ╝÷ ╛°┤┘. └╠╕ª
╗τ┐δ╟╧╖┴╕Θ <module>mod_logio</module>░í ╟╩┐Σ╟╧┤┘.</td></tr>
</table>
<p>"<var>...</var>"┐í┤┬ (<em>┐╣╕ª ╡Θ╛ε</em>,
<code>"%h %u %r %s %b"</code>) ╛╞╣½░═╡╡ ╛°░┼│¬, ╟╫╕±└╗ ╞≈╟╘╟╥
┴╢░╟└╠ │¬┐┬┤┘ (┴╢░╟└╗ ╕╕┴╖╟╧┴÷ ╛╩└╕╕Θ └┌╕«┐í "-"╕ª ▒Γ╖╧╟╤┤┘).
┴╢░╟└║ ╛╒┐í "!"╕ª ║┘└╠░┼│¬ ╛╚║┘└╬ HTTP ╗≤┼┬─┌╡σ ╕±╖╧└╕╖╬
└█╝║╟╤┤┘. ┐╣╕ª ╡Θ╛ε, "%400,501{User-agent}i"┤┬ 400 (Bad
Request) ┐└╖∙┐═ 501 (Not Implemented) ┐└╖∙└╧╢º╕╕
<code>User-agent:</code>╕ª ╖╬▒╫┐í │▓▒Γ░φ,
"%!200,304,302{Referer}i"┤┬ ┴ñ╗≤└√└╬ ╗≤┼┬░í <em>╛╞┤╤</em>
╕≡╡τ ┐Σ├╗┐í ┤δ╟╪ <code>Referer:</code>╕ª ╖╬▒╫┐í │▓▒Σ┤┘.</p>
<p>╝÷┴ñ└┌ "<"┐═ ">"┤┬ │╗║╬ ╕«┤┘└╠╖║╝╟╡╚ ┐Σ├╗┐í╝¡ ░ó░ó
├│└╜ ┐Σ├╗└╗ ╕╗╟╥┴÷ ╕╢┴÷╕╖ ┐Σ├╗└╗ ╕╗╟╥┴÷ ╝▒┼├╟╤┤┘. ▒Γ║╗└√└╕╖╬
<code>%s, %U, %T, %D, %r</code>└║ ├│└╜ ┐Σ├╗└╗ ║╕░φ, │¬╕╙┴÷
<code>%</code> ┴÷╜├╛ε┤┬ ╕╢┴÷╕╖ ┐Σ├╗└╗ ║╗┤┘. ▒╫╖í╝¡
<code>%>s</code>┤┬ ┐Σ├╗└╟ ╕╢┴÷╕╖ ╗≤┼┬(status)╕ª ▒Γ╖╧╟╧░φ,
<code>%<u</code>┤┬ └╬┴⌡└╕╖╬ ║╕╚ú╟╧┴÷ ╛╩┤┬ └┌┐°└╕╖╬ │╗║╬
╢≤┤┘└╠╖║╝╟╡╚ ░µ┐∞┐í╡╡ ├│└╜┐í └╬┴⌡╟╤ ╗τ┐δ└┌╕ª ▒Γ╖╧╟╤┤┘.</p>
<p>2.0.46 └╠└ⁿ└╟ httpd 2.0 ╣÷└ⁿ└║ <code>%...r</code>,
<code>%...i</code>, <code>%...o</code>└╟ ░ß░· ╣«└┌┐¡└╗ ▒╫┤δ╖╬
╡╬╛·┤┘. └╠└»┤┬ Common Log Format└╟ ┐Σ▒╕╗τ╟╫└╗ ╡√╕ú▒Γ└º╟╪╝¡┐┤┤┘.
┴∩, ┼¼╢≤└╠╛≡╞«░í ┴ª╛ε╣«└┌╕ª ╖╬▒╫┐í ┴²╛ε│╓└╗ ╝÷ └╓▒Γ╢º╣«┐í
╖╬▒╫╞─└╧└╗ ▒╫┤δ╖╬ ┤┘╖Ω ╢º┤┬ ┴╢╜╔╟╪╛▀ ╟╤┤┘.</p>
<p>║╕╛╚╗≤ └╠└»╖╬ 2.0.46║╬┼═ ├Γ╖┬╟╥ ╝÷ ╛°┤┬ ╣«└┌│¬ ┤┘╕Ñ ╞»╝÷╣«└┌╕ª
<code>\x<var>hh</var></code>╖╬ ╟Ñ╟÷╟╤┤┘. ┐⌐▒Γ╝¡ <var>hh</var>┤┬
╟╪┤τ ╣┘└╠╞«└╟ 16┴°╝÷ ╟Ñ╟÷└╗ │¬┼╕│╜┤┘. └╠ ▒╘─ó└╟ ┐╣┐▄┤┬ ╣Θ╜╜╖í╜¼╕ª
╛╒┐í ║┘└╠┤┬ <code>"</code>┐═ <code>\</code>, ▒╫╕«░φ C╛≡╛ε
╟ⁿ╜─└╟ ░°╣Θ╣«└┌╡Θ(<code>\n</code>, <code>\t</code> ╡ε)└╠┤┘.</p>
<p>└╧╣▌└√└╕╖╬ ╕╣└╠ ╗τ┐δ╟╧┤┬ ╖╬▒╫ ╟ⁿ╜─└║ ┤┘└╜░· ░░┤┘.</p>
<dl>
<dt>Common Log Format (CLF)</dt>
<dd><code>"%h %l %u %t \"%r\" %>s %b"</code></dd>
<dt>░í╗≤╚ú╜║╞« ┴ñ║╕╕ª ╞≈╟╘╟╤ Common Log Format</dt>
<dd><code>"%v %h %l %u %t \"%r\" %>s %b"</code></dd>
<dt>NCSA extended/combined ╖╬▒╫ ╟ⁿ╜─</dt>
<dd><code>"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\""</code></dd>
<dt>Referer ╖╬▒╫ ╟ⁿ╜─</dt>
<dd><code>"%{Referer}i -> %U"</code></dd>
<dt>Agent (║Ω╢≤┐∞└·) ╖╬▒╫ ╟ⁿ╜─</dt>
<dd><code>"%{User-agent}i"</code></dd>
</dl>
<p>┐Σ├╗└╗ ╝¡║±╜║╟╧┤┬ ╝¡╣÷└╟ ┴ñ▒╘ <directive
module="core">ServerName</directive>░· <directive
module="mpm_common">Listen</directive>└║ ░ó░ó <code>%v</code>┐═
<code>%p</code>╕ª ╗τ┐δ╟╤┤┘. ╖╬▒╫║╨╝« ╟┴╖╬▒╫╖Ñ└╠ ╜╟┴ª╖╬ ┐Σ├╗└╗
╝¡║±╜║╟╧┤┬ ╚ú╜║╞«╕ª ╛╦▒Γ└º╟╪ ░í╗≤╚ú╜║╞« ├ú▒Γ ╛╦░φ╕«┴≥└╗
░í┴· ╟╩┐Σ╛°╡╡╖╧ └╠╡Θ ░¬└║ <directive
module="core">UseCanonicalName</directive> ╝│┴ñ░· ╣½░ⁿ╟╧┤┘.</p>
</section>
<section id="security"><title>║╕╛╚╗≤ ░φ╖┴╟╥ ┴í</title>
<p>╝¡╣÷╕ª ╜├└█╟╧┤┬ ╗τ┐δ└┌┐▄┐í ┤┘╕Ñ ╗τ┐δ└┌░í ╖╬▒╫╞─└╧└╗ └·└σ╟╧┤┬
╡≡╖║┼Σ╕«┐í ╛▓▒Γ ▒╟╟╤└╗ ░í┴·╢º ┐╓ ║╕╛╚┐í ╣«┴ª░í ╗²▒Γ┤┬┴÷
<a href="../misc/security_tips.html#serverroot">║╕╛╚ ╞┴</a>
╣«╝¡╕ª ┬ⁿ░φ╟╧╢≤.</p>
</section>
<directivesynopsis>
<name>CookieLog</name>
<description>─φ┼░╕ª ╖╬▒╫┐í │▓▒Γ▒Γ└º╟╪ ╗τ┐δ╟╥ ╞─└╧╕φ└╗ ╝│┴ñ╟╤┤┘</description>
<syntax>CookieLog <var>filename</var></syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<compatibility>└╠ ┴÷╜├╛ε┤┬ ╗τ┐δ╡╟┴÷ ╛╩┤┬┤┘.</compatibility>
<usage>
<p><directive>CookieLog</directive> ┴÷╜├╛ε┤┬ ─φ┼░╕ª ╖╬▒╫┐í
│▓▒Γ▒Γ└º╟╪ ╗τ┐δ╟╥ ╞─└╧╕φ└╗ ╝│┴ñ╟╤┤┘. ╞─└╧╕φ└║ <directive
module="core">ServerRoot</directive>┐í ╗≤┤δ░µ╖╬└╠┤┘. └╠
┴÷╜├╛ε┤┬ <code>mod_cookies</code>┐═ ╚ú╚»└╗ └º╟╪ ╞≈╟╘╟▀└╗╗╙,
╜╟┴ª ╗τ┐δ╡╟┴÷ ╛╩┤┬┤┘.</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>CustomLog</name>
<description>╖╬▒╫╞─└╧ └╠╕º░· ╟ⁿ╜─└╗ ┴÷┴ñ╟╤┤┘</description>
<syntax>CustomLog <var>file</var>|<var>pipe</var>
<var>format</var>|<var>nickname</var>
[env=[!]<var>environment-variable</var>]</syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p>╝¡╣÷░í ┐Σ├╗└╗ ╖╬▒╫┐í │▓▒µ╢º <directive>CustomLog</directive>
┴÷╜├╛ε╕ª ╗τ┐δ╟╤┤┘. ╖╬▒╫ ╟ⁿ╜─└╗ ┴÷┴ñ╟╧░φ, ╚»░µ║»╝÷╕ª ╗τ┐δ╟╧┐⌐
┐Σ├╗└╟ ╞»┬í┐í ╡√╢≤ ╝▒┼├└√└╕╖╬ ╖╬▒╫╕ª │▓▒µ ╝÷╡╡ └╓┤┘.</p>
<p>╖╬▒╫╕ª ▒Γ╖╧╟╥ └σ╝╥╕ª ┴÷┴ñ╟╧┤┬ ├╣╣°┬░ ╛╞▒╘╕╒╞«┐í┤┬ ┤┘└╜
╡╤┴▀ ╟╧│¬╕ª ╗τ┐δ╟╤┤┘.</p>
<dl>
<dt><var>file</var></dt>
<dd><directive module="core">ServerRoot</directive>┐í
╗≤┤δ└√└╬ ╞─└╧╕φ.</dd>
<dt><var>pipe</var></dt>
<dd>╞─└╠╟┴╣«└┌ "<code>|</code>"╡┌┐í ╖╬▒╫ ┴ñ║╕╕ª ╟Ñ┴╪└╘╖┬└╕╖╬
╣▐└╗ ╟┴╖╬▒╫╖Ñ ░µ╖╬╕ª └√┤┬┤┘.
<note type="warning"><title>║╕╛╚:</title>
<p>╟┴╖╬▒╫╖Ñ└╗ ╗τ┐δ╟╤┤┘╕Θ ╟┴╖╬▒╫╖Ñ└║ └Ñ╝¡╣÷╕ª ╜├└█╟╤ ╗τ┐δ└┌
▒╟╟╤└╕╖╬ ╜╟╟α╡╚┤┘. ╝¡╣÷╕ª root╖╬ ╜├└█╟╤┤┘╕Θ ╟┴╖╬▒╫╖Ñ╡╡
root╖╬ ╜╟╟α╟╧╣╟╖╬ ╟┴╖╬▒╫╖Ñ└╠ ╛╚└ⁿ╟╤┴÷ ╚«└╬╟╧╢≤.</p>
</note>
<note type="warning"><title>┴╓└╟</title>
<p>└»┤╨╜║░í ╛╞┤╤ ╟├╖í╞√┐í╝¡ ╞─└╧░µ╖╬╕ª └╘╖┬╟╥╢º ╟├╖í╞√└╠
╣Θ╜╜╖í╜¼╕ª ╗τ┐δ╟╧┤⌡╢≤╡╡ ╣▌╡σ╜├ ╜╜╖í╜¼╕ª ╗τ┐δ╟╪╛▀ ╟╤┤┘.
└╧╣▌└√└╕╖╬ ╝│┴ñ╞─└╧┐í╝¡┤┬ ╟╫╗≤ ╜╜╖í╜¼╕ª ╗τ┐δ╟╧┤┬ ░═└╠
┴┴┤┘.</p>
</note></dd>
</dl>
<p>╡╬╣°┬░ ╛╞▒╘╕╒╞«┤┬ ╖╬▒╫╞─└╧┐í ▒Γ╖╧╟╥ │╗┐δ└╗ ┴÷┴ñ╟╤┤┘.
└ⁿ┐í <directive module="mod_log_config">LogFormat</directive>└╕╖╬
┴ñ└╟╟╤ <var>nickname</var>└╗ ╗τ┐δ╟╧░┼│¬ ┴≈┴ó <a
href="#formats">╖╬▒╫ ╟ⁿ╜─</a> └²┐í╝¡ ╝│╕φ╟╤ <var>format</var>
╣«└┌┐¡└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
<p>┐╣╕ª ╡Θ╛ε, ┤┘└╜ ╡╬ ┴÷╜├╛ε┤┬ ╢╚░░└║ └╧└╗ ╟╤┤┘.</p>
<example>
# ╟ⁿ╜─ ║░─¬└╗ ╗τ┐δ╟╤ CustomLog<br />
LogFormat "%h %l %u %t \"%r\" %>s %b" common<br />
CustomLog logs/access_log common<br />
<br />
# ┴≈┴ó ╟ⁿ╜─ ╣«└┌┐¡└╗ ╗τ┐δ╟╤ CustomLog<br />
CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"
</example>
<p>╝╝╣°┬░ ╛╞▒╘╕╒╞«┤┬ ╛°╛ε╡╡ ╡╟╕τ, ╞»┴ñ ╝¡╣÷ ╚»░µ║»╝÷ └»╣½┐í
╡√╢≤ ┐Σ├╗└╗ ╖╬▒╫┐í ▒Γ╖╧╟╥┴÷ ┐⌐║╬╕ª ░ß┴ñ╟╤┤┘. ┐Σ├╗┐í ┴÷┴ñ╟╤
<a href="../env.html">╚»░µ║»╝÷</a>░í ┴ñ└╟╡╟└╓┤┘╕Θ (╚ñ└║
'<code>env=!<var>name</var></code>'╕ª ╗τ┐δ╟╤ ░µ┐∞ ╛°┤┘╕Θ)
┐Σ├╗└╗ ╖╬▒╫┐í ▒Γ╖╧╟╤┤┘.</p>
<p><module>mod_setenvif</module>│¬ <module>mod_rewrite</module>
╕≡╡Γ└╗ ╗τ┐δ╟╧┐⌐ ┐Σ├╗║░╖╬ ╚»░µ║»╝÷╕ª ╝│┴ñ╟╥ ╝÷ └╓┤┘. ┐╣╕ª
╡Θ╛ε, ╝¡╣÷░í GIF ▒╫╕▓┐í ┤δ╟╤ ╕≡╡τ ┐Σ├╗└╗ ┴╓╝¡╣÷ ╖╬▒╫░í ╛╞┤╤
┤┘╕Ñ ╖╬▒╫╞─└╧┐í ▒Γ╖╧╟╧╖┴╕Θ,</p>
<example>
SetEnvIf Request_URI \.gif$ gif-image<br />
CustomLog gif-requests.log common env=gif-image<br />
CustomLog nongif-requests.log common env=!gif-image
</example>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>LogFormat</name>
<description>╖╬▒╫╞─└╧┐í ╗τ┐δ╟╥ ╟ⁿ╜─└╗ ▒Γ╝·╟╤┤┘</description>
<syntax>LogFormat <var>format</var>|<var>nickname</var>
[<var>nickname</var>]</syntax>
<default>LogFormat "%h %l %u %t \"%r\" %>s %b"</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p>└╠ ┴÷╜├╛ε┤┬ ┴ó▒┘ ╖╬▒╫╞─└╧└╟ ╟ⁿ╜─└╗ ┴÷┴ñ╟╤┤┘.</p>
<p><directive>LogFormat</directive> ┴÷╜├╛ε┤┬ ╡╬░í┴÷ ╟ⁿ╜─└╕╖╬
╗τ┐δ╟╤┤┘. ├╣╣°┬░ ╟ⁿ╜─└║ ╛╞▒╘╕╒╞«╕ª ╟╤░│╕╕ ╗τ┐δ╟╧┐⌐ ┤┘└╜
<directive>TransferLog</directive> ┴÷╜├╛ε╡Θ└╠ ╗τ┐δ╟╥ ╖╬▒╫
╟ⁿ╜─└╗ ┴÷┴ñ╟╤┤┘. └╠ ╛╞▒╘╕╒╞«┐í └º└╟ <a href="#formats">╖╬▒╫
╟ⁿ╜─ ┴÷┴ñ╟╧▒Γ</a> └²┐í╝¡ ╝│╕φ╟╤ <var>format</var>└╗ ┴≈┴ó
╗τ┐δ╟╧░┼│¬, ┤┘└╜┐í ╝│╕φ╟╥ <directive>LogFormat</directive>
┴÷╜├╛ε╖╬ ╣╠╕« ┴ñ└╟╟╤ (╖╬▒╫ ╟ⁿ╜─└╗ ┴÷─¬╟╧┤┬) <var>nickname</var>└╗
╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
<p><directive>LogFormat</directive> ┴÷╜├╛ε└╟ ╡╬╣°┬░ ╟ⁿ╜─└║
<var>format</var>░· <var>nickname</var>└╗ ┐¼░ß╟╤┤┘. ▒╫╖»╕Θ
╡┌┐í╝¡ ╗τ┐δ╟╧┤┬ <directive>LogFormat</directive>└╠│¬ <directive
module="mod_log_config">CustomLog</directive> ┴÷╜├╛ε┐í ╣▌║╣╟╪╝¡
╟ⁿ╜─ ╣«└┌┐¡└╗ ╕≡╡╬ └╘╖┬╟╧┤┬ ┤δ╜┼ <var>nickname</var>└╗ ╗τ┐δ╟╥
╝÷ └╓┤┘. ║░─¬└╗ ┴ñ└╟╟╧┤┬ <directive>LogFormat</directive>
┴÷╜├╛ε┤┬ <strong>└╠ ┐▄┐í┤┬ ╛╞╣½ ▒Γ┤╔└╗ ╟╧┴÷ ╛╩┤┬┤┘</strong>.
┴∩, ║░─¬<em>╕╕</em>└╗ ┴ñ└╟╟╧╕τ, ╜╟┴ª╖╬ ╟ⁿ╜─└╗ └√┐δ╟╧░┼│¬
╟ⁿ╜─└╗ ▒Γ║╗░¬└╕╖╬ ╕╕╡Θ┴÷ ╛╩┤┬┤┘. ▒╫╖»╣╟╖╬ ┤┘└╜┐í │¬┐└┤┬
<directive module="mod_log_config">TransferLog</directive>
┴÷╜├╛ε┐í ┐╡╟Γ└╗ ┴╓┴÷ ╛╩┤┬┤┘. ╢╟,
<directive>LogFormat</directive>└║ ║░─¬└╕╖╬ ┤┘╕Ñ ║░─¬└╗
┴ñ└╟╟╥ ╝÷ └╓┤┘. ║░─¬ └╠╕º┐í┤┬ ╞█╝╛╞« ▒Γ╚ú(<code>%</code>)╕ª
╗τ┐δ╟╥ ╝÷ ╛°└╜└╗ ┴╓└╟╟╧╢≤.</p>
<example><title>┐╣┴ª</title>
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
</example>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>TransferLog</name>
<description>╖╬▒╫╞─└╧ └º─í╕ª ╝│┴ñ╟╤┤┘</description>
<syntax>TransferLog <var>file</var>|<var>pipe</var></syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p>└╠ ┴÷╜├╛ε┤┬ <directive
module="mod_log_config">CustomLog</directive> ┴÷╜├╛ε┐═ ╛╞▒╘╕╒╞«┐═
▒Γ┤╔└╠ ║±╜┴╟╧┴÷╕╕, ╖╬▒╫ ╟ⁿ╜─└╗ ┴≈┴ó ┴÷┴ñ╟╧░┼│¬ ┐Σ├╗└╗ ┴╢░╟┐í
╡√╢≤ ╖╬▒╫┐í │▓▒µ ╝÷ ╛°┤┘. ┤δ╜┼ ░í└σ ├╓▒┘ ╗τ┐δ╟╤ (║░─¬└╗
┴ñ└╟╟╧┴÷ ╛╩└║) <directive
module="mod_log_config">LogFormat</directive> ┴÷╜├╛ε░í ┴÷┴ñ╟╤
╖╬▒╫ ╟ⁿ╜─└╗ ╗τ┐δ╟╤┤┘. ╣╠╕« ╟ⁿ╜─└╗ ┴÷┴ñ╟╧┴÷ ╛╩╛╥┤┘╕Θ Common
Log Format└╗ ╗τ┐δ╟╤┤┘.</p>
<example><title>┐╣┴ª</title>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""<br />
TransferLog logs/access_log
</example>
</usage>
</directivesynopsis>
</modulesynopsis>