summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/mod_limitipconn/files/27_mod_limitipconn.conf')
-rw-r--r--net-www/mod_limitipconn/files/27_mod_limitipconn.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-www/mod_limitipconn/files/27_mod_limitipconn.conf b/net-www/mod_limitipconn/files/27_mod_limitipconn.conf
new file mode 100644
index 000000000000..a4ae72b69f9d
--- /dev/null
+++ b/net-www/mod_limitipconn/files/27_mod_limitipconn.conf
@@ -0,0 +1,21 @@
+<IfDefine LIMITIP>
+ <IfModule !mod_watch.c>
+ LoadModule limitipconn_module modules/mod_limitipconn.so
+ </IfModule>
+</IfDefine>
+<IfModule mod_limitipconn.c>
+ <Location /somewhere>
+ MaxConnPerIP 3
+ # exempting images from the connection limit is often a good
+ # idea if your web page has lots of inline images, since these
+ # pages often generate a flurry of concurrent image requests
+ NoIPLimit image/*
+ </Location>
+
+ <Location /mp3>
+ MaxConnPerIP 1
+ # In this case, all MIME types other than audio/mpeg and video*
+ # are exempt from the limit check
+ OnlyIPLimit audio/mpeg video
+ </Location>
+</IfModule>