sudo apt-get install libapache2-mod-jk
sudo cp /usr/share/doc/libapache2-mod-jk/httpd_example_apache2.conf /etc/apache2/conf.d/mod-jk.conf
sudo vi /etc/apache2/sites-enabled/000-default (could be different in your case)
In your virtual host block add following line:
JkMount /hudson* ajp13_worker
Note: I am trying to map hudson here.. but app context could be different in your case. (simply replace hudson with your app name)
Check for syntax errors (should report OK)
apache2ctl -t;
Restart apache (or reload config)
sudo /etc/init.d/apache2 restart
Default tomcat installation won’t listen to connector port by default. Make sure that connector port configuration is uncommented in your case:
sudo vi /etc/tomcat6/server.xml
then, uncomment following line if commented out:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
Restart tomcat
sudo /etc/init.d/tomcat6 restart
Done
Test your setup: http:///yourdomain.com/hudson
Tested on:
lsb_release -a
Description: Ubuntu lucid (development branch)
Release: 10.04
Codename: lucid
and
lsb_release -a
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic