Mod_Bandwidth Questions Total Newbie

I'm a fresh newbie with my first dedicated server. I had to get a server because one my sites were doing to much on a shared server. And it allowed hotlinking.

I just installed today, mod_bandwidth. But I have no idea how to use it. I read the documentations on the official website but that was just confusing to me. I followed the instructions on

dedicated-resources.com

to install mod_bandwidth. I installed it without a problem. But I'm stuck on what to do? Like how do i configure it to limit bandwidths and stuff like that? I would like to do it httaccess way, but I have no idea where to begin. Here's my htaccess file...

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<IfModule mod_bandwidth.c>
BandWidth 72.32.233.178 0
BandWidth cursors-4u.com 0
BandWidth all 50000
</IfModule>
did I do that right? I only want to set up outbound traffic to limit to 50kb. However anyone looking through the site would get full speed of whatever my server is capable of. Also I followed this tutorial...

http://www.vttoth.com/bandwidth.htm

and put

<IfModule mod_bandwidth.c>
BandWidthModule On
BandWidthDataDir /var/tmp/apachebw/
</IfModule>
That is the virtual server block for the site that I wanted to limit. Was I supppose to put that there?

 

 

 

 

Top