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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > Limit connection in Apache or litespeed config

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2010, 09:49 PM
dk.mmmm dk.mmmm is offline
Member
 
Join Date: May 2010
Posts: 20
Default Limit connection in Apache or litespeed config

I'm using cPanel + LiteSpeed.

How to Limit connection per user or website ?

The option "Per Client Dyn Reqs/sec" , can I set it on .htaccess ?

Have many options if use LIteSpeed virtual host, but I can find any way to use it under LiteSpeed + cPanel.
Reply With Quote
  #2  
Old 06-21-2010, 11:41 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
searched the forum, same question as yours, and should be latest progress:
http://www.litespeedtech.com/support...ead.php?t=2260
Quote:
Originally Posted by mistwang View Post
The difficulty is that the VHost information is only available after receiving the "Host" header in the request. Right now, LSWS only need to look at the source IP of the socket connection.

If the limit exceed, LSWS will close the connection immediately without any response.
Reply With Quote
  #3  
Old 06-23-2010, 09:33 AM
dk.mmmm dk.mmmm is offline
Member
 
Join Date: May 2010
Posts: 20
But I want A different.

That Limit Total Number Connections of All IP / 1 user

Is is posible ? I think it posible.

You guys just sum the total connection. Because I see in Real Time Tracking, You guys show how many connections on that site.

Just make 2 more features:
- Global Limit Max Connections per user or site.
- Limit Max Connections in Virtual Host / cPanel Users.

This feature will help my server anti DDOS better.
Reply With Quote
  #4  
Old 06-29-2010, 11:23 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It wont work well, as LSWS does not know which vhost a connection goes to without accepting the connection and receiving the request headers, there is no way to tell which connection is valid user, which one is from attacker, if close connections after accepting connections, valid user will be affected.
Reply With Quote
  #5  
Old 06-29-2010, 11:25 AM
dk.mmmm dk.mmmm is offline
Member
 
Join Date: May 2010
Posts: 20
I just want limit number connection of virtual hosting.

So I can limit, that domain 50 connections max. , that user 100 connection max.

LOL... We selling hosting, it s required.
Reply With Quote
  #6  
Old 02-09-2011, 04:12 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
This feature would be useful outside of the normal LSWS vhost XML configuration (ie in an .htaccess or Apache-style .conf files), because even though the server accepts the connection to verify the Host header hence cancelling its anti-DDoS protection, it still has its benefits if the site is a PHP/Ruby resource hog and it's running on a shared environment. The web server will stop before processing the request via the language interpreter, saving a lot on load!
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
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


All times are GMT -7. The time now is 12:24 AM.



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