Assuming you have a default installation of Apache 2 and Tomcat 5.5 running on your Ubuntu box.
Like apache on http://hiserver and Tomcat on http://hiserver:8080
Now you want to accces i.e. http://hiserver:8080/baula through apache with http://hiserver/baula
Install mod_jk with
apt-get install libapache2-mod-jk
and enable the module with
a2enmod jk
create the file /etc/apache2/mods-enabled/jk.conf
JkWorkersFile /etc/apache2/workers.propertiesJkLogFile /var/log/apache2/mod_jk.logJkLogLevel error
create the file /etc/apache2/workers.properties (change the content to your needs)
workers.tomcat_home=/opt/baula/tomcat
workers.java_home=/usr/lib/java
ps=/
worker.list=mainworker
worker.mainworker.type=ajp13
worker.mainworker.port=8009
worker.mainworker.cachesize=20
edit i.e. /etc/apache2/sites-available/default and place the following between the <VirtualHost> tags
JKMount /baula* mainworker
Now restart Apache and http://hiserver/baula should show the content of http://hiserver:8080/baula
