Install and Enable the mod

1
2
apt-get install libapache2-mod-bw
a2enmod bw

Apply config to vhost

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<VirtualHost *:80>

# Enable BW Module
BandwidthModule On

# Force for Every Request
ForceBandWidthModule On

# Limit to 200kb/s
Bandwidth all 204800

#rest of your config
DocumentRoot /var/www/

</VirtualHost>

Restart Apache

1
/etc/ini.d apache2 restart
Posted in Uncategorized at February 3rd, 2010. No Comments.

For all those who use Atlassian Products such as Jira or Confluence, you may or may not be familiar with Crowd now for anyone using Jira and Confluence it can allow you to use your existing user DB for multiple other systems, Personally i use it as a client access database to keep external users out of my AD database wherever possible while allowing internal users to still access these systems with their AD accounts.

With the right plug-in’s you can hook the system into pretty much everything, the most flexible one is the Apache 2 module, personalty i use it mostly as i had endless troubles getting recursive sub group lockups working with the free Apache modules floating around.

If you need to use a proxy, set it now

1
export http_proxy="http://proxy_server:3128"

For Debian just copy and past the commands below, for other Distrobutions you will need to install the equivalent packages

1
apt-get -y install libapache2-mod-perl2 libsoap-lite-perl libdigest-sha1-perl liberror-perl libcache-cache-perl unzip make

Then to download, install and build the required modules the commands below should work.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cd ~
wget http://confluence.atlassian.com/download/attachments/9961902/Crowd-Apache-Connector-1.2.3.zip?version=1
mkdir crowd_apache
mv Crowd-Apache-Connector-1.2.3.zip\?version\=1 crowd_apache/
cd crowd_apache
mv Crowd-Apache-Connector-1.2.3.zip\?version\=1 Crowd-Apache-Connector-1.2.3.zip
unzip Crowd-Apache-Connector-1.2.3.zip
cd Atlassian-Crowd-1.2.3/
perl Makefile.PL
make
make install
cd ../Apache-CrowdAuth-1.2.3/
perl Makefile.PL
make
make install
cd ../Apache-CrowdAuthz-1.2.3/
perl Makefile.PL
make
make install
/etc/init.d/apache2 restart

From Here the Atlassian Article Integrating Crowd with Apache is the best place to go

Posted in Uncategorized at July 22nd, 2009. 1 Comment.

Quick tip for anyone running Debian Lenny under VMware. As the tools were open sourced you can now find an implementation in your apt tree. Although personally i haven’t seen a quick and easy guide floating around.

Run the fowling as root

1
2
3
4
apt-get update
apt-get install open-vm-source
module-assistant prepare open-vm
module-assistant auto-install open-vm
Posted in Uncategorized at March 11th, 2009. 4 Comments.