From 5b149f457fe85e3a7263aff2736eb36e7b6e4055 Mon Sep 17 00:00:00 2001
From: Joshua Slive The server access log records all requests processed by the
server. The location and content of the access log are
- controlled by the The The above configuration will write log entries in a format
@@ -178,9 +174,7 @@
- CustomLog
directive. The
- LogFormat
directive can be used to simplify the selection of
+ controlled by the CustomLog
+ directive. The LogFormat
+ directive can be used to simplify the selection of
the contents of the logs. This section describes how to configure the server
to record information in the access log.CustomLog
directive sets up a new log file
using the defined nickname. The filename for the
- access log is relative to the
- ServerRoot
unless it begins
+ access log is relative to the ServerRoot
unless it begins
with a slash.127.0.0.1
(%h
)
- HostnameLookups
is
+ made the request to the server. If HostnameLookups
is
set to On
, then the server will try to determine
the hostname and log it in place of the IP address. However,
this configuration is not recommended since it can
@@ -201,9 +195,7 @@
machine. This information is highly unreliable and should
almost never be used except on tightly controlled internal
networks. Apache httpd will not even attempt to determine
- this information unless
- IdentityCheck
is set
+ this information unless IdentityCheck
is set
to On
.frank
(%u
)
- CustomLog
lines show how
+ information. The last two CustomLog
lines show how
to mimic the effects of the ReferLog
and AgentLog
directives.
<VirtualHost>
sections in the
+ outside the <VirtualHost>
sections in the
main server context, it is possible to log all requests in the
same access log and error log. This technique does not allow
for easy collection of statistics on individual virtual
@@ -491,9 +481,8 @@
If CustomLog
or ErrorLog
- directives are placed inside a
- <VirtualHost>
+ directives are placed inside a
+ <VirtualHost>
section, all requests or errors for that virtual host will be
logged only to the specified file. Any virtual host which does
not have logging directives will still have its requests sent
@@ -542,9 +531,8 @@
In order to aid in debugging, the
- ScriptLog
directive
+
In order to aid in debugging, the
+ ScriptLog
directive
allows you to record the input to and output from CGI scripts.
This should only be used in testing - not for live servers.
More information is available in the mod_cgi documentation.
When using the powerful and complex features of mod_rewrite, it is almost
- always necessary to use the
- RewriteLog
to help
+ always necessary to use the RewriteLog
to help
in debugging. This log file produces a detailed analysis of how
the rewriting engine transforms requests. The level of detail
- is controlled by the
- RewriteLogLevel
directive.
RewriteLogLevel
directive.