packages: apache/apache-mod_log_config.conf - add note about %b and %B and ...

glen glen at pld-linux.org
Thu Feb 9 17:05:14 CET 2012


Author: glen                         Date: Thu Feb  9 16:05:14 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add note about %b and %B and suggest %O

---- Files affected:
packages/apache:
   apache-mod_log_config.conf (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/apache/apache-mod_log_config.conf
diff -u packages/apache/apache-mod_log_config.conf:1.3 packages/apache/apache-mod_log_config.conf:1.4
--- packages/apache/apache-mod_log_config.conf:1.3	Mon Dec 19 16:13:03 2005
+++ packages/apache/apache-mod_log_config.conf	Thu Feb  9 17:05:09 2012
@@ -6,6 +6,15 @@
 	# The following directives define some format nicknames for use with
 	# a CustomLog directive (see below).
 	#
+	# NOTE: In httpd 2.0, unlike 1.3, the %b and %B format strings do not
+	# represent the number of bytes sent to the client, but simply the size in
+	# bytes of the HTTP response (which will differ, for instance, if the
+	# connection is aborted, or if SSL is used). The %O format provided by
+	# mod_logio will log the actual number of bytes sent over the network.
+	#
+	# So if you need to log actual bytes sent (for example log analyzing),
+	# install mod_logio and use %O instead of %b.
+
 	LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 	LogFormat "%h %l %u %t \"%r\" %>s %b" common
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/apache/apache-mod_log_config.conf?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list