LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Limit file transfer speed for certain users

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2005, 05:36 AM
Robbban Robbban is offline
Member
 
Join Date: Oct 2005
Posts: 15
Default Limit file transfer speed for certain users

Hi

I would like to limit the download speed for "regular" users to 60kb/s, I know I can do that in the server settings.

But now the problem, premium users shouldn't have any speed-limit, can I control this with PHP and LiteSpeed pro server?

Thanks
Reply With Quote
  #2  
Old 10-17-2005, 01:21 PM
System System is offline
New Member
 
Join Date: Oct 2005
Posts: 5
If you users use certain ip ranges you can set them as trusted ip addresse, so any limits won't apply to them.

Unfortunatly I am sure they don't, so you will need to setup up a second port or hostname with different download speed settings in place that is for use by premium users only.
Reply With Quote
  #3  
Old 10-17-2005, 01:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, like System said, you need to create a dedicate vhost for premium users without the throttlint limit.
Reply With Quote
  #4  
Old 10-18-2005, 01:25 AM
Robbban Robbban is offline
Member
 
Join Date: Oct 2005
Posts: 15
Yeah, found out and did it Works fine!
Reply With Quote
  #5  
Old 10-18-2005, 01:32 AM
Robbban Robbban is offline
Member
 
Join Date: Oct 2005
Posts: 15
Hmmm, i'm using the php-function readfile to output a file to the user but he is not restraied to 60kb/s...

Per Client Out Bandwidth = 61440

That's set for that domain...


:?: :?: :?: :?:
Reply With Quote
  #6  
Old 10-18-2005, 07:55 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
In order to enable throttling, you need to set serverwide configuration to none-zero, then set the limit for the vhost that don't need to be throttled to a large number.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase the maximum number of file descriptor limit IO Install/Configuration 4 06-18-2007 10:57 AM
Problem installing LiteSpeed 2.2.1 Standard on UNIX perezsy Install/Configuration 17 09-22-2006 09:53 AM
Speed problem downloading large file user3 Install/Configuration 23 07-06-2006 12:04 PM


All times are GMT -7. The time now is 08:20 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.