Howdy,
I have bandwidth monitoring setup in Virtualmin. This seems to work fine with any number of Servers and/or Subservers.
However, I think I'm seeing a problem when dealing with sub-domains.
It looks like when creating a new sub-domain, that Virtualmin sets up the logfile to point to the same logfile as the parent server. Which in itself is fine.
But, when doing bandwidth statistics, it appears as if the parent server and sub-domain are each counted seperatly, meaning the same data is being counted twice (or more if there's more sub-domains).
Basically, one of our users created "domain.com". So far this month, it's used 100MB of bandwidth. They've also created "sub1.domain.com", "sub2.domain.com", and "sub3.domain.com", all of which point to the same access.log.
They're each listing as having used 100MB, or a total of 400MB (the primary domain plus the 3 subs).
Now, I could have Apache log the domain name of the virtualhost, but at first glance it doesn't look like Virtualmin is looking for that.
Is this by chance a bug, or is there something I can do to get around this?
Thanks! -Eric
Hi Eric,
I was reading your post and my first thought is, how do you have the sub-domains pointed? Proxy or frame forwarding, did you set it up as a A record or a CNAME? This is the first questions that comes to mind.
Also can you include your OS, etc just in case some one else is to read this they might provide a custom config to fix this issue.
Sorry I can't be of more help.
regards,
Charles
Hey Eric,
Sounds like it's probably a bug. There's always a chance of bugs, and whenever you think you've found one, feel free to drop a bug in the tracker. It'll get fixed as soon as possible (usually that means next version, though it sometimes takes longer).
I've filed a bug, and we'll see what Jamie has to say for himself. ;-)
Here's the bug:
https://www.virtualmin.com/bug-tracker/bug?bug%5fnumber=374
--
Check out the forum guidelines!