AccessLog
- Set access log file name
ProxyAccessLog
- Log proxy accesses to a different log file
CacheAccessLog
- Log cache accesses to a different log file
ErrorLog
- Set error log file name
LogFileDateExt
- Common Time/Date extension to all log file names
LogFormat
- Set access log file format
LogTime
- Set time zone for log files
NoLog
- No log entries for listed hosts/domains
-l
logfile command
line option, or with AccessLog
directive; log file can be
either an absolute path:
AccessLog /absolute/path/logfileor relative to
ServerRoot
:
AccessLog logs/logfile
ProxyAccessLog
directive:
ProxyAccessLog logfilelogfile can be either an absolute pathname, or relative to
ServerRoot
.
If ProxyAccessLog
is not set all accesses will be logged
to the normal AccessLog
instead.
CacheAccessLog
directive takes an absolute pathname of
the cache access log file:
CacheAccessLog logfilelogfile can be either an absolute pathname, or relative to
ServerRoot
.
ErrorLog
directive:
ErrorLog /absolute/path/errorlogIf error log file is not specified, it defaults to access log file name with
.error
extension. If the filename extension
already exists, .error
will replace it.
LogfileDateExt
directive specifies a common extension
to all the log files based on a time/date format. The value follows
the LogTime directive. Any format can be
specified using time/date directives as specified for
strftime() function, e.g.
LogFileDateExt %H:%M => 19:35 LogFileDateExt %d-%m-%Y => 02-18-95Spaces in the format are converted to '_'.
LogFileDateExt log
LogFormat CommonThe old W3C httpd format can be used by
LogFormat Old
remotehost rfc931 authuser [date] "request" status bytes
[
date]
"
request"
LogTime
directive:
LogTime GMTDefault is:
LogTime LocalTime
NoLog
directive can be used to
prevent log entry being made for hosts matching a given IP number or
host name template:
NoLog template
NoLog 128.141.*.* NoLog *.cern.ch NoLog *.ch *.fr *.it