Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 23, 2013 7:45 am 
Offline
Senior Member

Joined: Wed Dec 01, 2010 10:39 am
Posts: 71
Website: http://www.pannix.net
Location: Belgium
To limit the number of requests per IP (in case of a DOS) you can use the limit_conn_zone directive.

HTTP
Code:
limit_conn_zone $binary_remote_addr zone=myzone:10m;


SERVER
Code:
limit_conn myzone 10;


I understand this example, but when you have multiple virtual hosts, should you define a zone for each (or at least each important) virtual host/site?

Code:
limit_conn_zone $binary_remote_addr zone=myzone1:10m;
limit_conn_zone $binary_remote_addr zone=myzone2:10m;
limit_conn_zone $binary_remote_addr zone=myzone3:10m;


What size and number of connections did you set?
When and how do you use limit_conn_zone and limit_req_zone together?

Thanx.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group