LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Feedback/Feature Requests (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=10)
-   -   Limit connection in Apache or litespeed config (http://www.litespeedtech.com/support/forum/showthread.php?t=4097)

dk.mmmm 06-21-2010 09:49 PM

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.

NiteWave 06-21-2010 11:41 PM

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 (Post 11455)
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.


dk.mmmm 06-23-2010 09:33 AM

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.

mistwang 06-29-2010 11:23 AM

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.

dk.mmmm 06-29-2010 11:25 AM

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.

priestjim 02-09-2011 04:12 AM

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!


All times are GMT -7. The time now is 05:23 AM.