LogFormat for homedir to use %O instead of %b for apache 2.x

Version 1.331


Feb 27, update: I received notice that %O doesnt work for apache 2.0, but does work for 2.2 I've re-released the 1.33.1 binaries. If you have 2.0 and 1.33.1, please update with the following guide: http://help.directadmin.com/item.php?id=29 and then type: echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue /usr/local/directadmin/dataskq d800 to ensure it works. =============== In the /etc/httpd/conf/ips.conf, the following line is used to specify the logging format of access from ~username in /var/log/httpd/homedir.log LogFormat "%b "%r"" homedir For apache 2.x, this should be %O instead of %b. LogFormat "%O "%r"" homedir The %b format logs the size of the file before it's sent. This means that if a file is cancelled half-way through, the user is being overbilled. The %O format on the other hand only logs the number of bytes sent to the user and doesn't worry about the filesize. This fix only applies when: apache_ver=2.0 is set in the directadmin.conf, because it's not a valid option for apache 1.3.

Interested to try DirectAdmin? Get a 30-day Free Trial!