Strange bandwidth usge in Cpanel servers ?

Written on 7:06 AM by David S Anand

Hi,

Few days back one of the server's I work was consuming strange amount of bandwidth
While checking the total number of users used bandwidth it was very low compared
to used bandwidth.

Reason:

Many of the wordpress users never use the domain name /directory/file.php format
instead to save their monthly bandwidth they use hostname/~username/file.php

The biggest thing I found was few sites main page loads loads from one
server and the sites inner contents like images are loaded from another server
as hostname/~username/filename.jpg ..etc

The other thing i found was few domains never resolve but you can see huge
hits in Apache access logs they are also doing the same hostname/~username
is access from some server.

This saves a huge bandwidth for the user but normally your server start to consume
huge bandwidth as well huge Apache hits.


Solution:

Go to the security center on WHM and enable mod userdir protection for the whole server.
If you have some of the genuine users are having issues on site development or domain resolving time is taking a bit and want them to give an access Just manually edit the httpd.conf and add the user in httpd.conf

Please use the default virtual host entry which is on top of the
virtual host entries
and add the following line
UserDir enabled
username

FYI use the following example







If you enjoyed this post Subscribe to our feed

No Comment

Post a Comment