Debian Codegraph @

doc/contrib/mod_ratio.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_ratio</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_ratio</code></b></h2>
12 </center>
13 <hr><br>
14
15 <p>
16 The <code>mod_ratio</code> module
17
18 <p>
19 This module is contained in the <code>mod_ratio.c</code> file for
20 ProFTPD 1.3.<i>x</i>, and is not compiled by default. Installation
21 instructions are discussed <a href="#Installation">here</a>; a discussion
22 on <a href="#Usage">usage</a> is also available.
23
24 <p>
25 The most current version of <code>mod_ratio</code> is distributed with the
26 ProFTPD source code.
27
28 <h2>Author</h2>
29 <p>
30 Please contact TJ Saunders &lt;tj <i>at</i> castaglia.org&gt; with any
31 questions, concerns, or suggestions regarding this module.
32
33 <h2>Directives</h2>
34 <ul>
35 <li><a href="#AnonRatio">AnonRatio</a>
36 <li><a href="#ByteRatioErrMsg">ByteRatioErrMsg</a>
37 <li><a href="#CwdRatioMsg">CwdRatioMsg</a>
38 <li><a href="#FileRatioErrMsg">FileRatioErrMsg</a>
39 <li><a href="#GroupRatio">GroupRatio</a>
40 <li><a href="#HostRatio">HostRatio</a>
41 <li><a href="#LeechRatioMsg">LeechRatioMsg</a>
42 <li><a href="#RatioFile">RatioFile</a>
43 <li><a href="#Ratios">Ratios</a>
44 <li><a href="#RatioTempFile">RatioTempFile</a>
45 <li><a href="#SaveRatios">Ratios</a>
46 <li><a href="#UserRatio">UserRatio</a>
47 </ul>
48
49 <p>
50 <hr>
51 <h3><a name="AnonRatio">AnonRatio</a></h3>
52 <strong>Syntax:</strong> AnonRatio <em>name file-ratio file-credit byte-ratio byte-credit</em><br>
53 <strong>Default:</strong> None<br>
54 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
55 <strong>Module:</strong> mod_ratio<br>
56 <strong>Compatibility:</strong> 1.2.2 and later
57
58 <p>
59 The <code>AnonRatio</code> directive
60
61 <p>
62 <hr>
63 <h3><a name="ByteRatioErrMsg">ByteRatioErrMsg</a></h3>
64 <strong>Syntax:</strong> ByteRatioErrMsg <em>message</em><br>
65 <strong>Default:</strong> None<br>
66 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
67 <strong>Module:</strong> mod_ratio<br>
68 <strong>Compatibility:</strong> 1.2.2 and later
69
70 <p>
71 The <code>ByteRatioErrMsg</code> directive
72
73 <p>
74 <hr>
75 <h3><a name="CwdRatioMsg">CwdRatioMsg</a></h3>
76 <strong>Syntax:</strong> CwdRatioMsg <em>message</em><br>
77 <strong>Default:</strong> None<br>
78 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
79 <strong>Module:</strong> mod_ratio<br>
80 <strong>Compatibility:</strong> 1.2.2 and later
81
82 <p>
83 The <code>CwdRatioMsg</code> directive
84
85 <p>
86 <hr>
87 <h3><a name="FileRatioErrMsg">FileRatioErrMsg</a></h3>
88 <strong>Syntax:</strong> FileRatioErrMsg <em>message</em><br>
89 <strong>Default:</strong> None<br>
90 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
91 <strong>Module:</strong> mod_ratio<br>
92 <strong>Compatibility:</strong> 1.2.2 and later
93
94 <p>
95 The <code>FileRatioErrMsg</code> directive
96
97 <p>
98 <hr>
99 <h3><a name="GroupRatio">GroupRatio</a></h3>
100 <strong>Syntax:</strong> GroupRatio <em>name file-ratio file-credit byte-ratio byte-credit</em><br>
101 <strong>Default:</strong> None<br>
102 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
103 <strong>Module:</strong> mod_ratio<br>
104 <strong>Compatibility:</strong> 1.2.2 and later
105
106 <p>
107 The <code>GroupRatio</code> directive
108
109 <p>
110 <hr>
111 <h3><a name="HostRatio">HostRatio</a></h3>
112 <strong>Syntax:</strong> HostRatio <em>name file-ratio file-credit byte-ratio byte-credit</em><br>
113 <strong>Default:</strong> None<br>
114 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
115 <strong>Module:</strong> mod_ratio<br>
116 <strong>Compatibility:</strong> 1.2.2 and later
117
118 <p>
119 The <code>HostRatio</code> directive
120
121 <p>
122 <hr>
123 <h3><a name="LeechRatioMsg">LeechRatioMsg</a></h3>
124 <strong>Syntax:</strong> LeechRatioMsg <em>message</em><br>
125 <strong>Default:</strong> None<br>
126 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
127 <strong>Module:</strong> mod_ratio<br>
128 <strong>Compatibility:</strong> 1.2.2 and later
129
130 <p>
131 The <code>LeechRatioMsg</code> directive
132
133 <p>
134 <hr>
135 <h3><a name="RatioFile">RatioFile</a></h3>
136 <strong>Syntax:</strong> RatioFile <em>path</em><br>
137 <strong>Default:</strong> None<br>
138 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
139 <strong>Module:</strong> mod_ratio<br>
140 <strong>Compatibility:</strong> 1.2.2 and later
141
142 <p>
143 The <code>RatioFile</code> directive
144
145 <p>
146 <hr>
147 <h3><a name="Ratios">Ratios</a></h3>
148 <strong>Syntax:</strong> Ratios <em>on|off</em><br>
149 <strong>Default:</strong> Off<br>
150 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
151 <strong>Module:</strong> mod_ratio<br>
152 <strong>Compatibility:</strong> 1.2.2 and later
153
154 <p>
155 The <code>Ratios</code> directive
156
157 <p>
158 <hr>
159 <h3><a name="RatioTempFile">RatioTempFile</a></h3>
160 <strong>Syntax:</strong> RatioTempFile <em>path</em><br>
161 <strong>Default:</strong> None<br>
162 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
163 <strong>Module:</strong> mod_ratio<br>
164 <strong>Compatibility:</strong> 1.2.2 and later
165
166 <p>
167 The <code>RatioTempFile</code> directive
168
169 <p>
170 <hr>
171 <h3><a name="SaveRatios">SaveRatios</a></h3>
172 <strong>Syntax:</strong> SaveRatios <em>on|off</em><br>
173 <strong>Default:</strong> Off<br>
174 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
175 <strong>Module:</strong> mod_ratio<br>
176 <strong>Compatibility:</strong> 1.2.2 and later
177
178 <p>
179 The <code>SaveRatios</code> directive
180
181 <p>
182 <hr>
183 <h3><a name="UserRatio">UserRatio</a></h3>
184 <strong>Syntax:</strong> UserRatio <em>name file-ratio file-credit byte-ratio byte-credit</em><br>
185 <strong>Default:</strong> None<br>
186 <strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;, &lt;Directory&gt;, &lt;Anonymous&gt;<br>
187 <strong>Module:</strong> mod_ratio<br>
188 <strong>Compatibility:</strong> 1.2.2 and later
189
190 <p>
191 The <code>UserRatio</code> directive
192
193 <p>
194 <hr>
195 <h2><a name="Installation">Installation</a></h2>
196 The <code>mod_ratio</code> module is distributed with ProFTPD. Simply follow
197 the normal steps for using third-party modules in ProFTPD:
198 <pre>
199 $ ./configure --with-modules=mod_ratio
200 $ make
201 $ make install
202 </pre>
203 Alternatively, <code>mod_ratio</code> can be built as a DSO module:
204 <pre>
205 $ ./configure --enable-dso --with-shared=mod_ratio ...
206 </pre>
207 Then follow the usual steps:
208 <pre>
209 $ make
210 $ make install
211 </pre>
212
213 <p>
214 For those with an existing ProFTPD installation, you can use the
215 <code>prxs</code> tool to add <code>mod_ratio</code>, as a DSO module, to
216 your existing server:
217 <pre>
218 $ prxs -c -i -d mod_ratio.c
219 </pre>
220
221 <p>
222 <hr><br>
223 <h2><a name="Usage">Usage</a></h2>
224 To use <code>mod_ratio</code>
225
226 <p>
227 <hr>
228 <font size=2><b><i>
229 &copy; Copyright 2013 TJ Saunders<br>
230 All Rights Reserved<br>
231 </i></b></font>
232 <hr>
233
234 </body>
235 </html>