httpd.conf -- true/correct bytes sent

Building a Web Server, for Windows and Linux

Under the standard LogFormat, bytes-sent (%b) values on partial (206) and canceled/dropped requests are incorrectly reported. The full size of the requested file is reported as bytes-sent, regardless of the true transfer size.

To report the correct value, mod_logio will need to be used with its own bytes-sent (%O) field.

LoadModule logio_module modules/

# Old LogFormat
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined

# Updated LogFormat
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-agent}i\"" combined