Project

General

Profile

Actions

Docs ModEvasive » History » Revision 9

« Previous | Revision 9/18 (diff) | Next »
moo, 2007-07-07 15:28


[[TracNav(DocsToc))] {{{
#!rst =================
Limit Connections =================

-------------------
Module: mod_evasive
-------------------

.. meta::
:keywords: limit, connections, evasive, mod_evasive

.. contents:: Table of Contents

Description ===========

mod_evasive is a very simplistic module to limit connections per IP.

Options =======

evasive.max-conns-per-ip

limits the number of connections per IP.
e.g.: ::
evasive.max-conns-per-ip = 3
You may also want to set up conditionals :
eg.: ::
evasive.max-conns-per-ip = 1
$HTTP["host"] == "example.com" {
evasive.max-conns-per-ip = 2
}
$HTTP["host"] == "example2.com" {
evasive.max-conns-per-ip = 0
}
0 means unlimited.
In this case, default sites get 1 connections, example.com 2 and example2.com unlimited.

Additional Resources ==================== * http://trac.lighttpd.net/trac/browser/trunk/src/mod_evasive.c - Source Code

Updated by moo over 16 years ago · 9 revisions