home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 May
/
PCWorld_2004-05_cd.bin
/
komunikace
/
apache
/
apache_2.0.48-win32-x86-no_ssl.msi
/
Data.Cab
/
F252129_logs.html.ko.euckr
< prev
next >
Wrap
Extensible Markup Language
|
2003-05-29
|
28KB
|
519 lines
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>╖╬▒╫╞─└╧ - Apache HTTP Server</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 href="./images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="./mod/">╕≡╡Γ</a> | <a href="./mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">┐δ╛ε</a> | <a href="./sitemap.html">╗τ└╠╞«╕╩</a></p>
<p class="apache">Apache HTTP Server Version 2.0</p>
<img alt="" src="./images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="./">Version 2.0</a></div><div id="page-content"><div id="preamble"><h1>╖╬▒╫╞─└╧</h1>
<div class="toplang">
<p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="./en/logs.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./ja/logs.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/logs.html" title="Korean"> ko </a></p>
</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><a name="security" id="security">║╕╛╚ ░µ░φ</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><a name="errorlog" id="errorlog">┐└╖∙ ╖╬▒╫ (Error Log)</a></h2>
<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>
<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><a name="accesslog" id="accesslog">┴ó▒┘ ╖╬▒╫ (Access Log)</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>│¬
<a href="http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/Log_Analysis_Tools/">Yahoo</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><a name="common" id="common">Common ╖╬▒╫ ╟ⁿ╜─</a></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><a name="combined" id="combined">Combined ╖╬▒╫ ╟ⁿ╜─</a></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><a name="multiple" id="multiple">┐⌐╖» ┴ó▒┘ ╖╬▒╫</a></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><a name="conditional" id="conditional">┴╢░╟║╬ ╖╬▒╫</a></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><a name="rotation" id="rotation">╖╬▒╫ ╝°╚» (Log Rotation)</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 />
apachectl 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><a name="piped" id="piped">╖╬▒╫╕ª ╞─└╠╟┴╖╬ ║╕│╗▒Γ</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><a name="virtualhost" id="virtualhost">░í╗≤╚ú╜║╞«</a></h2>
<p>╕╣└║ <a href="vhosts/">░í╗≤╚ú╜║╞«</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><a name="other" id="other">┤┘╕Ñ ╖╬▒╫╞─└╧</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><a name="pidfile" id="pidfile">PID ╞─└╧</a></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><a name="scriptlog" id="scriptlog">╜║┼⌐╕│╞« ╖╬▒╫</a></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><a name="rewritelog" id="rewritelog">└τ└█╝║ ╖╬▒╫</a></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="./ja/logs.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/logs.html" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
<p class="menu"><a href="./mod/">╕≡╡Γ</a> | <a href="./mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">┐δ╛ε</a> | <a href="./sitemap.html">╗τ└╠╞«╕╩</a></p></div>
</body></html>