Gentoo Archives: gentoo-server

From: Gilles Nedostoupof <gilles@×××××××××××.be>
To: gentoo-server@l.g.o
Subject: RE: [gentoo-server] Per user monthly transfer quota
Date: Tue, 06 Apr 2004 21:09:16
Message-Id: MARKKqfrpwoYItnmlX600000607@mark.eortc.be
In Reply to: [gentoo-server] Per user monthly transfer quota by Jernej Kos
1 > How could i see how many megabytes did a specified user transfer in the
2 last month
3
4 Have a look on AWStats, it display the bandwidth used by virtual domains by
5 parsing the httpd logs for you
6 http://awstats.sourceforge.net
7
8 To limit the usage you can use the following module (you need mod_perl
9 installed)
10 http://search.cpan.org/~drolsky/Apache-Quota-0.03/lib/Apache/Quota.pm
11
12 If you really need to setup something related to a user, you have to use
13 HTTP authentication and rely on the %u in the custom log format, then parse
14 the logs with a script like these provided in this thread
15
16 Gilles.
17
18 -----Original Message-----
19 From: Jernej Kos [mailto:kostko@××××××××××××.net]
20 Sent: Monday, 05 April, 2004 5:49 PM
21 To: gentoo-server@l.g.o
22 Subject: [gentoo-server] Per user monthly transfer quota
23
24 -----BEGIN PGP SIGNED MESSAGE-----
25 Hash: SHA1
26
27 How could i see how many megabytes did a specified user transfer in the last
28 month and/or limit it ? Especialy i would need this for apache.
29
30 Regards,
31 Kostko.
32 - --
33 Kostko <kostko@××××××××××××.net>
34 JWeb-Network
35 -----BEGIN PGP SIGNATURE-----
36 Version: GnuPG v1.2.4 (GNU/Linux)
37
38 iD4DBQFAcYAHllbq6idCSBURAkedAJik0NsaWf4u/AMwwectr3ZMa0fUAJ9mCtYd
39 J7AXfm27Un0TVPVPu1odzg==
40 =V0MC
41 -----END PGP SIGNATURE-----