updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mod_bwshare / mod_bwshare.install
blobc24a4592d088636c4a3e051f102f1930cb494e49
1 post_install()
4    PATH="$PATH:/sbin"
5    ldconfig -n /usr/lib/apache
7 /bin/cat <<THEEND
9 Setting it up
10 -------------
12 1. add the following to /etc/httpd/conf/httpd.conf
13        LoadModule bwshare_module       modules/mod_bwshare.so
15 2. add the module settings to httpd.conf
16        <IfModule mod_bwshare.c>
17           #Some bandwidth control parameters.
18           BW_tx1cred_rate         0.067
19           BW_tx1debt_max          30
20           BW_tx2cred_rate         1000
21           BW_tx2debt_max          1000000
22          
23           <Location /bwshare-info>
24              SetHandler bwshare-info
25           </Location>
27           <Location /bwshare-trace>
28              SetHandler bwshare-trace
29           </Location>
30        </IfModule>
31 3. for improved privacy consider adding these lines to both <Location..> directives:
32             Order deny,allow
33             Deny from all
34             Allow from 127.0.0.1
36 ${EXTRATEXT}
37 THEEND
40 op=$1
41 shift
42 $op $*