summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-apache/mod_slotlimit
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-apache/mod_slotlimit')
-rw-r--r--www-apache/mod_slotlimit/Manifest1
-rw-r--r--www-apache/mod_slotlimit/files/10_mod_slotlimit.conf76
-rw-r--r--www-apache/mod_slotlimit/metadata.xml7
-rw-r--r--www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild25
4 files changed, 109 insertions, 0 deletions
diff --git a/www-apache/mod_slotlimit/Manifest b/www-apache/mod_slotlimit/Manifest
new file mode 100644
index 000000000000..3d1933246ded
--- /dev/null
+++ b/www-apache/mod_slotlimit/Manifest
@@ -0,0 +1 @@
+DIST mod_slotlimit-1.3.tar.gz 17100 SHA256 ad722f5f6791ee97f361cc801d930c2106ee775d1f88efed1b5ac9fd9e538106 SHA512 3da9763831bf9869d8f9ccf68cee28b40a1e900313b223878a86d813009d8b94bb5fcd8423baf40d2feafb2beff02d352a69c2b21e6d89deb9bc404814ffa71b WHIRLPOOL 10dab747cee02ede966ce473466512edf516032fd50ea070766f160627bc9a365b9e2661eec01c9ae4c959d3e2d213e4ad891ae415faa7990d0af3fb5e53134e
diff --git a/www-apache/mod_slotlimit/files/10_mod_slotlimit.conf b/www-apache/mod_slotlimit/files/10_mod_slotlimit.conf
new file mode 100644
index 000000000000..93f95fbb40b1
--- /dev/null
+++ b/www-apache/mod_slotlimit/files/10_mod_slotlimit.conf
@@ -0,0 +1,76 @@
+<IfDefine SLOTLIMIT>
+LoadModule slotlimit_module modules/mod_slotlimit.so
+
+# AvailableSlotsPercent
+# Syntax: AvailableSlotsPercent number
+# Default: 0
+#
+# Percentage of apache slots available in order to set any restrictions.
+# Setting it to 0 dynamic slot allocation algorithm will be deactivated.
+# When has remained free the specified percentage of apache slots, module
+# start to manage incoming connections, penalizing sites that are monopolizing
+# the resources of the server.
+#
+# N.B. Before activating this option check that the apache scoreboard display
+# correct vhost name of the running sites. In order to make this you can
+# activate (momentarily) mod_status and connect to http://yourserver/server-status.
+# If Vhost hostname do not display correctly the name of the sites visited
+# sets up to "On" the directive "ForceVhostName" before using "AvailableSlotsPercent".
+#
+# MaxConnectionsPerSite
+# Syntax: MaxConnectionsPerSite number
+# Default: No Limit
+#
+# Max connections for each running site
+#
+# N.B. Like for "AvailableSlotsPercent" if Vhost hostname do not display correctly
+# the name of the sites visited sets up to "On" the directive "ForceVhostName".
+#
+# ClientIpLimit
+# Syntax: ClientIpLimit number
+# Default: 40
+#
+# Number of maximum simultaneous connection per IP.
+#
+# ForceVhostName
+# Syntax: ForceVhostName On|Off
+# Default: Off
+#
+# Force vhost hostname in scoreboard. Vhost hostname do not match site
+# visited under some conditions, for example with some mass virtual hosting technique.
+# In order to check that this is not your case you can use mod_status.
+# Setting this directive to On, mod_slotlimit will overwrite vhost hostname
+# in apache scoreboard.
+#
+# CustomErrMsg
+# Syntax: CustomErrMsg "My custom error message"
+# Default: "Blocked by mod_slotlimit. More information about this error may be available in the server error log."
+#
+# A custom error message that allows you to replace default error message with one you create
+#
+# CustomLimitsFile
+# Syntax: CustomLimitsFile /path/to/file
+# Default: No Value
+#
+# Using this directive you can specify limits customized for each running site,
+# penalizing or privileged it. In the file should be stored (line by line) the
+# site name and the number of usable slots. You can add comments by using the '#'
+# character. The file format is as follows:
+#
+# ..
+# ..
+# www.sitename1.it 10
+# # this is a comment
+# www.site2.com 35
+# ..
+# ..
+
+# Example:
+# AvailableSlotsPercent 13
+# MaxConnectionsPerSite 20
+# ClientIpLimit 20
+# CustomLimitsFile /etc/apache2/mod_slotlimit.rules
+
+</IfDefine>
+
+# vim: ts=4 filetype=apache
diff --git a/www-apache/mod_slotlimit/metadata.xml b/www-apache/mod_slotlimit/metadata.xml
new file mode 100644
index 000000000000..bddc8a291f6f
--- /dev/null
+++ b/www-apache/mod_slotlimit/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>patrick@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild b/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild
new file mode 100644
index 000000000000..1eecb2309a72
--- /dev/null
+++ b/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit apache-module
+
+MY_PV=${PV/_/-}
+MY_P="mod_slotlimit-${MY_PV}"
+
+DESCRIPTION="manage resources used for each running site using dynamic slot allocation algorithm and static rules"
+HOMEPAGE="http://www.lucaercoli.it/en/mod_slotlimit.html"
+SRC_URI="http://downloads.sourceforge.net/project/mod-slotlimit/mod-slotlimit/${MY_PV}/${P}.tar.gz"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+SLOT="0"
+
+# See apache-module.eclass for more information.
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="SLOTLIMIT"
+
+need_apache2_2