From 8e95d00cddc3f2022166f9da263a3edcf6b55da5 Mon Sep 17 00:00:00 2001 From: dgaudet Date: Tue, 3 Mar 1998 08:38:26 +0000 Subject: [PATCH] Explain %p and %v a little more. PR: 1908 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@80372 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_log_config.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/manual/mod/mod_log_config.html b/docs/manual/mod/mod_log_config.html index 337f4a4c1e9..62b526f159a 100644 --- a/docs/manual/mod/mod_log_config.html +++ b/docs/manual/mod/mod_log_config.html @@ -116,7 +116,7 @@ by the values as follows: %...l: Remote logname (from identd, if supplied) %...{Foobar}n: The contents of note "Foobar" from another module. %...{Foobar}o: The contents of Foobar: header line(s) in the reply. -%...p: Port of the server serving the request (see UseCanonicalName) +%...p: The canonical Port of the server serving the request %...P: The process ID of the child that serviced the request. %...r: First line of request %...s: Status. For requests that got internally redirected, this @@ -127,7 +127,7 @@ by the values as follows: %...T: The time taken to serve the request, in seconds. %...u: Remote user (from auth; may be bogus if return status (%s) is 401) %...U: The URL path requested. -%...v: The name of the server (i.e. which virtual host?) +%...v: The canonical ServerName of the server serving the request. The `...' can be nothing at all (e.g. "%h %u %r %s %b"), or it can @@ -154,6 +154,17 @@ Note that the common log format is defined by the string "%h %l extending for format if desired (e.g. to add extra fields at the end). NCSA's extended/combined log format would be "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"". +

+ +Note that the canonical ServerName +and Port of the server serving the request +are used for %v and %p respectively. This +happens regardless of the +UseCanonicalName setting because +otherwise log analysis programs would have to duplicate the entire +vhost matching algorithm in order to decide what host really served +the request. +

Using Multiple Log Files

The TransferLog and CustomLog directives can -- 2.47.2