From 849ccfac040eb956c0c6fa3339d5ef8378aea100 Mon Sep 17 00:00:00 2001
From: Chris Pepper Note that in versions previous to 2.0.46 no escaping has been performed
+ Note that in httpd 2.0 versions prior to 2.0.46, no escaping was performed
on the strings from For security reasons starting with 2.0.46 non-printable and
+ For security reasons, starting with 2.0.46, non-printable and
other special characters are escaped mostly by using
%...r
, %...i
and
%...o
. This was mainly to comply with the requirements of
the Common Log Format. This implied that clients could insert control
characters into the log, so you had to be quite careful when dealing
with raw log files.\xhh
sequences, where hh stands for
the hexadecimal representation of the raw byte. Exceptions from this
rule are "
and \
which are escaped by prepending
- a backslash, and all whitespace characters that are written in their
- C-notation (\n
, \t
etc).\n
, \t
etc).
The format argument to the
Referer:
on all requests
which did not return some sort of normal status.
- Note that in versions previous to 2.0.46 no escaping has been performed +
Note that in httpd 2.0 versions prior to 2.0.46, no escaping was performed
on the strings from %...r
, %...i
and
%...o
. This was mainly to comply with the requirements of
the Common Log Format. This implied that clients could insert control
characters into the log, so you had to be quite careful when dealing
with raw log files.
For security reasons starting with 2.0.46 non-printable and +
For security reasons, starting with 2.0.46, non-printable and
other special characters are escaped mostly by using
\xhh
sequences, where hh stands for
the hexadecimal representation of the raw byte. Exceptions from this
rule are "
and \
which are escaped by prepending
- a backslash, and all whitespace characters that are written in their
- C-notation (\n
, \t
etc).
\n
, \t
etc).
Some commonly used log format strings are:
@@ -272,7 +272,7 @@ characteristics using environment variables.The first argument, which specifies the location to which - the logs will be written, can take on one of the following two + the logs will be written, can take one of the following two types of values:
If a program is used, then it will be run under the user who +
If a program is used, then it will be run as the user who started httpd. This will be root if the server was started by root; be sure that the program is secure.
The third argument is optional and allows the decision on - whether or not to log a particular request to be based on the +
The third argument is optional and controls whether or
+ not to log a particular request based on the
presence or absence of a particular variable in the server
environment. If the specified environment
variable is set for the request (or is not set, in the case
@@ -357,7 +357,7 @@
this directive sets the log format which will be used by logs
specified in subsequent %
).