mod_cband

Discussion in 'Server Operation' started by Titam, Jul 2, 2006.

  1. Titam

    Titam New Member

    Hi !

    I have FC4, and Apache 2. I just install mod_cband, and it doesn't work at all :\ I did as you said in the tuto

    There is a part of my vhost :

    <VirtualHost MY.ADRE.SS.IP>
    ServerName sub.domain.com/msrlz
    DocumentRoot /home/msrlz
    CBandSpeed 10kb/s 1 1
    CBandRemoteSpeed 1kb/s 1 1
    <Directory "/home/msrlz/">
    #allow from all
    Options -Indexes
    </Directory>
    </VirtualHost>

    And that didn't work :'( I don't know what to do (this value was just to test, i tested others and same things)

    Ty for your help
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Any error messages, also in the Apache error log?

    BTW,

    Code:
    ServerName sub.domain.com/msrlz
    is wrong. Should be

    Code:
    ServerName sub.domain.com
     
  3. Titam

    Titam New Member

    Hi !

    I have no error message, just

    [Sun Jul 02 01:20:42 2006] [notice] mod_bw : Memory Allocated 28 bytes (each conf takes 28 bytes)
    [Sun Jul 02 01:20:42 2006] [notice] mod_bw : Version 0.7 - Initialized [1 Confs]


    For the sub.domain.com/msrlz, it's because i want only the cband on this sub.domain.com/msrlz and not on the all sub.domain.com
    But maybe if i put just sub.domain.com in the good vhost it will work ?
     
  4. Titam

    Titam New Member

    I just tested and if i put just sub.domain.com in my vhost, this limit is apply at all the directories, sub.domain.com/dir1, sub.domain.com/dir2, etc. And I just want an limitation in 1 directory, sub.domain.com/dir1 and not on dir2

    I tried too to put an other limit in other vhost, and the highest limit is apply.
    If you want to look my vhost :

    Code:
    <VirtualHost MY.ADD.RESS.IP>    <----- The VH where i want the limitation
    DocumentRoot "/home/gardiensfl"
    ServerName sub.domain.com/gardiensfl
    
      CBandSpeed 300kb/s 1 1
      CBandRemoteSpeed 300kb/s 1 1
    
    
    <Directory "/home/gardiensfl">
    allow from all
    Options -Indexes
    </Directory>
    </VirtualHost>
    
    <VirtualHost MY.ADD.RESS.IP>    <-------- i want no limit
    ServerName sub.domain.com/msrlz
    DocumentRoot "/home/msrlz"
    
    <Directory "/home/msrlz/">
    #allow from all
    Options -Indexes
    </Directory>
    </VirtualHost>
    
    <VirtualHost MY.ADD.RESS.IP> <-------- i want no limit
    DocumentRoot "/home/balkan"
    ServerName sub.domain.com/balkan
    <Directory "/home/balkan">
    allow from all
    Options -Indexes
    </Directory>
    </VirtualHost>
    
    
     
  5. falko

    falko Super Moderator ISPConfig Developer

  6. Titam

    Titam New Member

    Hello,

    I can't limit download's speed with apache directive ... anyway i found a solution :) As I don't want to modify URL (sub.domain.com/dir 1, etc.) of my users, and as that did'n work with mod_cband, i put in DNS a newsub.domain.com, and in my httpd.conf
    ...

    Redirect permanent /gardiensfl http://newsub.domain.com

    ...

    <VirtualHost MY.ADD.RESS.IP> <----- The VH where i want the limitation
    DocumentRoot "/home/gardiensfl"
    ServerName newsub.domain.com
    CBandSpeed 300kb/s 1 1
    CBandRemoteSpeed 300kb/s 1 1
    <Directory "/home/gardiensfl">
    allow from all
    Options -Indexes
    </Directory>
    </VirtualHost>

    ....

    And now it's working :)
     
  7. thecgmguy

    thecgmguy New Member

    Really sorry to dig up an old thread but I'm having pretty much the same issue.

    I have a fileshare portion of my site: https://www.example.com/fileshare/

    I want to impose a download limit for ONLY that directory.

    But I get an error whenever I put the cbandspeed parameter in the <Directory "/home/fileshare"> section.

    I'd prefer not to setup a subdomain. Any ideas?

    Thanks!
     
  8. thecgmguy

    thecgmguy New Member

    In retrospect, I'd be happy if it worked on that directory at all...

    After doing more testing, it seems like cband only picks up on traffic attempts that are pulling data from the root directory or one of the corresponding sub-directories.

    Due to funky partitions on my server, I need to move the fileshare repository to a completely seperate location... it's like cband isn't seeing it at all.
     
  9. thecgmguy

    thecgmguy New Member

    *bump* Sorry to bug. Any thoughts? :)
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in Apache's error log?
    Can you post your vhost configuration?
     

Share This Page