From: brian Date: Wed, 20 Jan 1999 04:47:08 +0000 (+0000) Subject: Tony Finch says: X-Git-Tag: 1.3.5~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4029b12a0911a25722b58a00843bc0e17c9351b4;p=apache Tony Finch says: >I just realised that this is wrong: the %v won't work on 1.3.4 because >it always uses the canonical server name. It should be changed to >%{SERVER_NAME}e. So I've changed it accordingly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82687 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/vhosts/mass.html b/docs/manual/vhosts/mass.html index 4ecd952e2d..10b763f85a 100644 --- a/docs/manual/vhosts/mass.html +++ b/docs/manual/vhosts/mass.html @@ -86,7 +86,7 @@ doing this is dubious anyway because it eats file descriptors. It's better to log to a pipe or a fifo and arrange for the process at the other end to distribute the logs (and perhaps accumulate statistics, etc.). A LogFormat directive that includes -%v for the virtual host makes it easy to do this.

+%{SERVER_NAME}e for the virtual host makes it easy to do this.


Overview of the technique

@@ -156,7 +156,7 @@ care is taken to do a per-dynamic-virtual-host equivalent of UseCanonicalName Off # splittable logs -LogFormat "%v %h %l %u %t \"%r\" %s %b" vcommon +LogFormat "%{SERVER_NAME}e %h %l %u %t \"%r\" %s %b" vcommon CustomLog logs/access_log vcommon <Directory /www/hosts> @@ -273,7 +273,7 @@ sections.

 UseCanonicalName Off
 
-LogFormat "%v %h %l %u %t \"%r\" %s %b" vcommon
+LogFormat "%{SERVER_NAME}e %h %l %u %t \"%r\" %s %b" vcommon
 CustomLog logs/access_log vcommon
 
 <Directory /www/commercial>