
According to henning.brauer@bsmail.de:
Yes, that exactly the way we do it. If I imagine the power needed to implement this its nearly impossible to reimpleent for ONLY name-based Virtual Hosts.
Add an apache log module that measures the actual bytes sent out (file size + HTTP headers) - accounting problem solved.
And if you think of Bandwith management - i don't see any way to do this on an per name-basis, only per ip (and service) is possible as far as I know. To use Bandwidth mangement on named vhosts-basis, you would have to read out the FULL ip-header and service-specific headers on the router...i think this is not possible without enormous CPU-power and would give high delays on the router.
Use the Apache module mod_bandwidth, or something similar. People tend to buy and install enormous amounts of hardware, solving problems by adding more boxes. While fixing the software is simpler, easier and faster. Mike.