Forum Moderators: phranque

Message Too Old, No Replies

mod_throttle question

question about mod_throttle

         

rjerina

6:18 am on Mar 12, 2005 (gmt 0)



I am trying to setup mod_throttle for a file storage web site. Each user is going to have their own directory in /data/www/mysite.com/userfiles/

I was wondering how I could set it up in apache's http.conf so that each directory has the same amount of bandwidth (250mb/month). Am I going to have to add each user to http.conf and set their throttling individually?

Thanks in advance :)

sitz

3:09 am on Mar 25, 2005 (gmt 0)

10+ Year Member



No, just place the bandwidth directives in the proper <Directory> container:

<Directory /data/www/mysite.com/userfiles>
Bandwidth all 1024
</Directory>

...or some such. Any directive that supports "per-directory" or "directory" contexts (depending on who's writing the module docs) can be placed in <Directory>, <Location>, or <(DirectoryŚLocation)Match> containers. Hope this helps.

trimast

3:24 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



Hi,

I came across this thread purely by chance, and it relates to an answer i had posted to a thread i started earlier today, i've probably got confused slightly as i'm just starting to look at mod_throttle

If we have say 500 different users, each with their own directory so the path is something such as

/data/www/mysite.com/user1/
/data/www/mysite.com/user2/
/data/www/mysite.com/user3/

etc can we control the amount of bandwidth say 250mb per month for each account through one single file such as:

<Directory /data/www/mysite.com/userfiles>
Bandwidth all 1024
</Directory>

or would we need to create a single file for each user account then add it into their directory.

Sorry if i've misinterpreted what's been said, just trying to understand the mod_throttle a bit more.

Rob