Red Hat ENTERPRISE LINUX 3 Reference Manual page 164

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

146
10.5.32.
DefaultType
sets a default content type for the Web server to use for documents whose MIME types
DefaultType
cannot be determined. The default is
10.5.33.
HostnameLookups
HostnameLookups
tomatically resolves the IP address for each connection. Resolving the IP address means that the server
makes one or more connections to a DNS server, adding processing overhead. If
is set to
, the server performs a double-reverse DNS look up adding even more processing
double
overhead.
To conserve resources on the server,
If hostnames are required in server log files, consider running one of the many log analyzer tools that
perform the DNS lookups more efficiently and in bulk when rotating the Web server log files.
10.5.34.
ErrorLog
specifies the file where server errors are logged. By default, this directive is set to
ErrorLog
/var/log/httpd/error_log
10.5.35.
LogLevel
sets how verbose the error messages in the error logs are.
LogLevel
least verbose to most verbose) to
default
is
LogLevel
10.5.36.
LogFormat
The
directive configures the format of the various Web server log files. The actual
LogFormat
used depends on the settings given in the
LogFormat
).
CustomLog
The following are the format options if the
(remote host's IP address or hostname)
%h
Lists the remote IP address of the requesting client. If
hostname is recorded unless it is not available from DNS.
(rfc931)
%l
Not used. A hyphen [-] appears in the log file for this field.
(authenticated user)
%u
If authentication was required, lists the user name of the user is recorded. Usually, this is not
used, so a hyphen [-] appears in the log file for this field.
(date)
%t
Lists the date and time of the request.
text/plain
can be set to
,
on
off
HostnameLookups
.
,
emerg
.
warn
.
or
. If
double
HostnameLookups
is set to
,
,
alert
crit
error
CustomLog
directive is set to
CustomLog
HostnameLookups
Chapter 10. Apache HTTP Server
is set to
HostnameLookups
by default.
off
LogLevel
,
,
,
warn
notice
info
directive (refer to Section 10.5.37
combined
is set to
, the server au-
on
can be set (from
or
. The
debug
:
, the client
on

Advertisement

Table of Contents
loading

Table of Contents