diff options
Diffstat (limited to 'network/mod_limitipconn/README')
-rw-r--r-- | network/mod_limitipconn/README | 66 |
1 files changed, 6 insertions, 60 deletions
diff --git a/network/mod_limitipconn/README b/network/mod_limitipconn/README index 34bf2a7aab..572ce02f33 100644 --- a/network/mod_limitipconn/README +++ b/network/mod_limitipconn/README @@ -1,63 +1,6 @@ -From: -http://www.mail-archive.com/dev@httpd.apache.org/msg37189.html - -Hi! - - -Attached is a version of mod_limitipconn.c that works in conjunction with -mod_cache and httpd-2.2. We've been using this on ftp.acc.umu.se for some -time now without any unwanted issues. - -The main problem with mod_limitipconn-0.22 was that since mod_cache runs as -a quick handler, mod_limitipconn also must run as a quick handler with all -those benefits and drawbacks. - -Download the tarball from http://dominia.org/djao/limitipconn2.html , extract -it, and replace mod_limitipconn.c with this version and follow the build -instructions. - -I would really wish that this was made part of httpd, it's really needed when -running a file-download site due to the scarily large amount of demented -download manager clients out there. - -However, I have not received any response from the original author on the -matter. From what I have understood of the license it should be OK to merge -into httpd if you want though, but I think that you guys are way more clued -in that matter than me. - -This is a summary of the changes made: -* Rewritten to run as a Quick Handler, before mod_cache. -* Configuration directives are now set per VHost (Directory/Location - are available after the Quick Handler has been run). This means that - any <Location> containers has to be deleted in existing configs. -* Fixed configuration merging, so per-vhost settings use defaults set - at the server level. -* By running as a Quick Handler we don't go through the entire lookup - phase (resolve path, stat file, etc) before we get the possibility - to block a request. This gives a clear performance enhancement. -* Made the handler exit as soon as possible, doing the "easy" checks - first. -* Don't do subrequest to lookup MIME type if we don't have mime-type - specific config. -* Count connections in closing and logging state too, we don't want to - be DOS'd by clients behind buggy firewalls and so on. -* Added debug messages for easy debugging. -* Reduced loglevel from ERR to INFO for reject-logging. - -In any case, I hope that this can be of use for others than us. - - -/Nikke --- --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | [EMAIL PROTECTED] ---------------------------------------------------------------------------- - We are AT&T of Borg, MCI will be assimilated -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - -(FWIW: copied without explicit permission) - --- +mod_limitipconn is an Apache which allows web server administrators +to limit the number of simultaneous downloads permitted from a single +IP address. The module can be loaded with the following in /etc/httpd/httpd.conf @@ -66,4 +9,7 @@ ExtendedStatus On MaxConnPerIP 5 To test the 'test.pl' utility from mod_evasive is included in the doc dir. +Which when run multiple simultainus sessions of should similate accessive +connectivity; e.g. with MaxConnPerIP set to ``1'' +while true; do (perl ./test.pl &); perl ./test.pl; done |