Bandwidth not calculated, not even LOGGED in Apache

bearman

New member
Joined
Jun 23, 2006
Messages
3
Code:
[root@server01 domains]# du -h xxx-media.nl.*
0       xxx-media.nl.bytes
0       xxx-media.nl.error.log
0       xxx-media.nl.log
[root@server01 domains]#
I have lots of domains like this...

In DirectAdmin, it says:
Code:
xxx-media.nl	
0.013588 / unlimited (bandwidth)

And under settings... it gives:
Current Usage - Maximum Usage
Bandwidth (meg) - 0.2070 - 20000
 
Hello,

If apache isn't logging it, then most likely apache was told not to log it.

Type:

cd /usr/local/directadmin/data/templates/custom
ls -la

If you have some virtual_host*.conf files there, check to see if they have the CustomLog entires, eg:

CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes

You can compare the virtual_host*.conf files one directory up (cd ..) to see what the defaults look like.

If you do have virtual_host.conf files in the custom directory, they might be there for a reason.. so you'd want to check carefully what the differences are with the default before either deleting the files from the custom directory or re-adding the CustomLog lines.

John
 
Code:
[root@server01 root]# cd /usr/local/directadmin/data/templates/custom
[root@server01 custom]# ls
webalizer.conf
[root@server01 custom]# ls -la
total 12
drwx--x--x    2 diradmin diradmin     4096 Jun 23 00:23 .
drwx--x--x    6 diradmin diradmin     4096 Jun 21 16:50 ..
-rw-r--r--    1 diradmin diradmin     1281 Nov 29  2005 webalizer.conf
[root@server01 custom]#
There are no such files.
 
Hello,

Ok, that would leave me to believe that the domain in question does not resolve to your DA box.. and most likely somewhere else. Check www.dnsreport.com to see where it resolves to, and if that IP is on your server or not.

John
 
Back
Top