Set bandwidth automatically on addon or subdomain creation?
Hi,
i know i can use the following command to limit each domain's download speed for http connection,
/scripts/setbwlimit --domain=domain.com --limit=xxxx
but i as i know,it is limit by domain instead of account,
by the way,even i set it for certain account's main domain,
when the account add sub,parked or addon domain,
i think those domains will no be limited at all.
i want to ask if any way i can add it,
no matter what domain be added into my server,
the command will be applied to that domain automatically ?
thanks
-
Hi @tyuuu The whmapi1 function here should do that for you: WHM API 1 Functions - limitbw - Developer Documentation - cPanel Documentation 0 -
Hi, i think it is too difficult for me, i wonder if any post/pre feature to run it directly. thanks 0 -
Hi @tyuuu It should be as simple as running the script you were running before though. whmapi1 limitbw user=username bwlimit=00
Please sign in to leave a comment.
Comments
3 comments