blob: 93f95fbb40b106491cfd0db1012cd2e7a5827d30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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
|